*{box-sizing:border-box;margin:0;padding:0}
body{
  margin:0;
  background:#0a0a0a;
  color:#fff;
  font-family:'Montserrat',Arial,sans-serif;
  overflow-x:hidden
}

/* ===== HEADER ===== */
.header{
  position:fixed;top:0;left:0;right:0;z-index:1000;
  background:rgba(10,10,10,.95);backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(60,255,195,.2);
  padding:16px 0
}
.header-inner{
  max-width:1200px;margin:auto;padding:0 20px;
  display:flex;justify-content:space-between;align-items:center
}
.logo{
  font-size:28px;font-weight:800;color:#3cffc3;
  text-shadow:0 0 20px rgba(60,255,195,.5);
  letter-spacing:2px;text-decoration:none
}
.nav{display:flex;gap:24px;align-items:center}
.nav a{
  color:#fff;text-decoration:none;font-weight:500;
  transition:.3s;position:relative;font-size:15px
}
.nav a:hover,.nav a.active{color:#3cffc3;text-shadow:0 0 10px rgba(60,255,195,.5)}
.nav a::after{
  content:'';position:absolute;bottom:-4px;left:0;width:0;height:2px;
  background:#3cffc3;transition:.3s
}
.nav a:hover::after,.nav a.active::after{width:100%}

/* ===== CALCULATOR PAGE ===== */
.calculator-page{
  margin-top:70px;padding:40px 20px 140px;min-height:calc(100vh - 70px);
  position:relative
}
.calculator-loading{
  position:absolute;inset:0;z-index:100;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:rgba(10,10,10,.9);backdrop-filter:blur(8px);
  transition:opacity .25s ease, visibility .25s ease
}
.calculator-loading.hidden{
  opacity:0;visibility:hidden;pointer-events:none
}
.calculator-loading-kiwi{
  position:relative;
  width:min(90vw, 380px);height:min(90vw, 380px);
  max-width:380px;max-height:380px;
  display:flex;align-items:center;justify-content:center
}
.calculator-loading-kiwi::before{
  content:'';
  position:absolute;inset:-12px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(60,255,195,.4) 0%, rgba(60,255,195,.12) 50%, transparent 70%);
  animation:calculator-kiwi-glow-pulse 1.6s ease-in-out infinite
}
.calculator-loading-kiwi-img{
  position:relative;z-index:1;
  width:min(75vw, 320px);height:min(75vw, 320px);
  max-width:320px;max-height:320px;
  object-fit:contain;
  animation:calculator-kiwi-glow 1.6s ease-in-out infinite
}
@keyframes calculator-kiwi-glow{
  0%,100%{ filter:drop-shadow(0 0 8px rgba(60,255,195,.35)); opacity:1 }
  50%{ filter:drop-shadow(0 0 16px rgba(60,255,195,.55)); opacity:.98 }
}
@keyframes calculator-kiwi-glow-pulse{
  0%,100%{ transform:scale(1); opacity:.6 }
  50%{ transform:scale(1.06); opacity:.9 }
}
.calculator-loading-text{
  margin-top:20px;color:#aaa;font-size:16px;font-weight:500
}
.container{
  max-width:1200px;margin:auto
}
.page-title{
  font-size:48px;font-weight:800;text-align:center;
  margin-bottom:16px;color:#3cffc3;
  text-shadow:0 0 20px rgba(60,255,195,.3);
  letter-spacing:2px
}
.page-subtitle{
  text-align:center;color:#aaa;font-size:18px;
  margin-bottom:50px
}

/* ===== CALCULATOR SECTIONS ===== */
.calc-section{
  margin-bottom:50px
}
.calc-section-title{
  font-size:24px;margin-bottom:20px;
  color:#3cffc3;font-weight:600;
  text-shadow:0 0 10px rgba(60,255,195,.3)
}

/* ===== WIZARD ===== */
.wizard-top{margin-bottom: 24px;}
.wizard-progress{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-bottom: 16px;
  flex-wrap:wrap;
  position:relative;
}
.wizard-progress::before{
  content:'';
  position:absolute;
  left:50%;top:50%;
  transform:translate(-50%,-50%);
  height:3px;
  background:rgba(60,255,195,.15);
  border-radius:999px;
  width:min(80%, 320px);
  z-index:0;
  pointer-events:none;
}
.wiz-dot{
  position:relative;
  z-index:1;
  width:44px;height:44px;
  border-radius: 999px;
  border: 2px solid rgba(60,255,195,.35);
  background: rgba(18,18,18,.9);
  color:#c8d0d8;
  font-weight: 800;
  font-size:15px;
  cursor:pointer;
  transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.wiz-dot:hover:not(:disabled):not(.wiz-dot--disabled){
  border-color: rgba(60,255,195,.5);
  background: rgba(30,40,35,.95);
  color:#e8e8e8;
}
.wiz-dot.active{
  background: linear-gradient(145deg,#2de4a8,#00e68a);
  color:#0a0a0a;
  border-color: rgba(60,255,195,.6);
  box-shadow: 0 0 20px rgba(60,255,195,.3), inset 0 1px 0 rgba(255,255,255,.25);
}
.wiz-dot:disabled,
.wiz-dot.wiz-dot--disabled{opacity:.4;cursor:not-allowed;pointer-events:none}

.wizard-step{display:none}
.wizard-step.active{display:block}

.wizard-nav{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(60,255,195,.12);
}

.wizard-notice{
  flex:1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,80,120,.35);
  background: rgba(255,80,120,.08);
  color: #ff9ab2;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.wizard-attn{
  outline: 2px solid rgba(255,80,120,.55);
  outline-offset: 2px;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255,80,120,.20) inset;
}

.wizard-draft{
  border: 1px solid rgba(60,255,195,.18);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(0,0,0,.25);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.wizard-draft-text{color:#aaa;font-size:13px}
.wizard-draft-actions{display:flex;gap:10px;flex-wrap:wrap}

/* временно скрываем баннер черновика (функционал оставляем в JS) */
.wizard-draft{ display:none !important; }

.wizard-summary{
  border: 1px solid rgba(60,255,195,.18);
  border-radius: 18px;
  padding: 20px;
  background: rgba(0,0,0,.25);
}
.wizard-summary-row{
  display:grid;
  grid-template-columns: 110px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(60,255,195,.1);
}
.wizard-summary-row:last-of-type{border-bottom:none}
.wizard-summary-k{color:#9ca3af;font-size:13px;font-weight:600}
.wizard-summary-v{color:#fff;font-weight:600;font-size:14px}
.wizard-summary-edit{
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(60,255,195,.4);
  background: rgba(60,255,195,.08);
  color: #3cffc3;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.wizard-summary-edit:hover{
  background: rgba(60,255,195,.18);
  border-color: rgba(60,255,195,.6);
  box-shadow: 0 0 16px rgba(60,255,195,.2);
}
.wizard-summary-edit:active{
  transform: scale(0.98);
}
.wizard-summary-total{
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(60,255,195,.15);
  font-size: 17px;
  color: #e5e7eb;
}
.wizard-summary-total strong{color:#3cffc3;font-size:18px}
.wizard-summary-hint{margin-top:12px;color:#9ca3af;font-size:13px}

/* ===== STEP 3 (simplified) ===== */
.step3-layout{ display:block; }
.step3-details{
  border: 1px solid rgba(60,255,195,.14);
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.step3-details > summary{
  cursor:pointer;
  color:#e8e8e8;
  font-weight:900;
  list-style: none;
  margin-bottom: 12px; /* отступ после заголовка */
}
.step3-details > summary::-webkit-details-marker{display:none}
.step3-details > summary:after{
  content:'▾';
  float:right;
  color:#3cffc3;
  opacity:.8;
}
.step3-details[open] > summary:after{content:'▴'}

/* "Фильтры по крепости" в одном цельном блоке */
.step3-details .filters{
  margin-bottom: 0;
}

.step3-details .tobacco-search{
  margin-top: 12px;
  margin-bottom: 0;
}

/* Выпадающий список «Тип вкуса» */
.mix-type-dropdown{
  position: relative;
}
.mix-type-dropdown-trigger{
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(60,255,195,.25);
  border-radius: 12px;
  background: rgba(10,10,10,.4);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, background .2s;
}
.mix-type-dropdown-trigger:hover{
  border-color: rgba(60,255,195,.5);
  background: rgba(60,255,195,.06);
}
.mix-type-dropdown-label{
  color: #aaa;
  flex: none;
}
.mix-type-dropdown-value{
  flex: 1;
  color: #3cffc3;
  font-weight: 600;
}
.mix-type-dropdown-chevron{
  flex: none;
  color: #888;
  font-size: 10px;
}
.mix-type-dropdown-panel{
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid rgba(60,255,195,.25);
  border-radius: 12px;
  background: #1a1a1a;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.mix-type-dropdown-panel[hidden]{
  display: none !important;
}
.mix-type-dropdown-panel .filters{
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== POPULAR LIST ===== */
.popular-list{
  margin-top: 6px;
  max-height: 240px;
  overflow: auto;
  border: 1px solid rgba(60,255,195,.12);
  border-radius: 12px;
  background: rgba(10,10,10,.35);
}
.popular-item{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(60,255,195,.10);
  cursor:pointer;
}
.popular-item:last-child{border-bottom:none}
.popular-item:hover{
  background: rgba(60,255,195,.08);
}
.popular-name{font-weight:800;color:#fff}
.popular-meta{color:#aaa;font-size:12px;margin-top:4px}
.popular-count{
  flex: none;
  color:#3cffc3;
  font-weight:900;
  background: rgba(60,255,195,.10);
  border: 1px solid rgba(60,255,195,.22);
  padding: 6px 10px;
  border-radius: 999px;
  height: fit-content;
}
.popular-hint{
  margin-top: 8px;
  color:#8a8a8a;
  font-size: 12px;
}

.step3-side .selected-info{margin-top:10px}

/* ===== GRID CARDS ===== */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}
.card{
  background:#1a1a1a;border:1px solid #2a2a2a;border-radius:16px;overflow:hidden;
  cursor:pointer;transition:.3s;position:relative
}
.card:hover{
  border-color:#3cffc3;transform:translateY(-4px);
  box-shadow:0 8px 25px rgba(60,255,195,.2)
}
.card.active{
  border-color:#3cffc3;box-shadow:0 0 0 2px #3cffc3 inset,
    0 0 30px rgba(60,255,195,.3)
}
.card-img-wrap{
  position:relative;
  height:140px;
  background:#1a1a1a;
}
.card-img-wrap img{width:100%;height:100%;object-fit:cover;display:block}
.card-no-photo{
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  color:#666;font-size:12px;font-weight:600;
}
.card img{width:100%;height:140px;object-fit:cover;background:#1a1a1a;display:block;max-width:100%}
.card-body{padding:12px}
.card-title{font-weight:600;margin-bottom:4px;color:#fff}
.card-price{color:#3cffc3;font-weight:600;text-shadow:0 0 10px rgba(60,255,195,.5)}

/* ===== 3D PREVIEW ===== */
.hookah-3d{
  border: 1px solid rgba(60,255,195,.18);
  border-radius: 18px;
  background: radial-gradient(1200px 320px at 30% 30%, rgba(60,255,195,.10), rgba(0,0,0,.35));
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,0,0,.35) inset;
}
.hookah-3d model-viewer{
  background: transparent;
}
.hookah-3d-hint{
  padding: 10px 14px;
  color: #aaa;
  font-size: 12px;
  border-top: 1px solid rgba(60,255,195,.12);
  background: rgba(10,10,10,.45);
}

/* ===== TABS ===== */
.tabs{display:flex;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.tab{
  padding:12px 22px;border-radius:18px;border:1px solid #333;
  cursor:pointer;background:#1a1a1a;transition:.3s;color:#fff
}
.tab:hover{background:#222;border-color:#3cffc3}
.tab.active{
  background:linear-gradient(135deg,#3cffc3,#00ff88);
  color:#000;border-color:#3cffc3;font-weight:600;
  box-shadow:0 0 15px rgba(60,255,195,.4)
}

/* ===== FILTERS ===== */
.filters{
  display:flex;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  margin-bottom:24px;
  padding-bottom:4px;
  scrollbar-width:thin;
  scrollbar-color:rgba(60,255,195,.3) transparent
}
.filters::-webkit-scrollbar{
  height:6px
}
.filters::-webkit-scrollbar-track{
  background:transparent
}
.filters::-webkit-scrollbar-thumb{
  background:rgba(60,255,195,.3);
  border-radius:3px
}
.filters::-webkit-scrollbar-thumb:hover{
  background:rgba(60,255,195,.5)
}
.filter{
  padding:8px 16px;border-radius:18px;border:1px solid #333;
  cursor:pointer;transition:.3s;background:#1a1a1a;color:#fff;
  white-space:nowrap;flex-shrink:0
}
.filter .filter-sub{
  display:inline-block;
  margin-left:8px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#e8e8e8;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
}
.filter:hover{background:#222;border-color:#3cffc3}
.filter.active{
  background:#111;
  font-weight:600;
  border-color:#3cffc3;
  box-shadow:0 0 8px rgba(60,255,195,.3);
}
.filter.hint-off{opacity:.35}
.filter.light{color:#3cffc3;border-color:#3cffc3}
.filter.light.active{background:#3cffc3;color:#000}
.filter.mid{color:#4da3ff;border-color:#4da3ff}
.filter.mid.active{background:#4da3ff;color:#000}
.filter.strong{color:#b44cff;border-color:#b44cff}
.filter.strong.active{background:#b44cff;color:#000}

.power-scale-hint{
  margin: -10px 0 18px;
  color:#9a9a9a;
  font-size: 12px;
  line-height: 1.35;
}
.power-scale-hint strong{ color:#e8e8e8; }
.power-scale-hint--compact{
  margin: 10px 0 0;
  font-size: 11px;
  color:#8a8a8a;
}

/* ===== GLOBAL TOBACCO SEARCH ===== */
.tobacco-search{margin: 0 0 18px;}
.tobacco-search .search-input{max-width: 640px;}
.tobacco-search-results{
  margin-top: 10px;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid rgba(60,255,195,.15);
  border-radius: 12px;
  background: rgba(10,10,10,.5);
}
.tobacco-search-results:empty{display: none}
.tobacco-search-result{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(60,255,195,.08);
  cursor: pointer;
  transition: background .15s;
}
.tobacco-search-result:last-child{border-bottom: none}
.tobacco-search-result:hover{
  background: rgba(60,255,195,.08);
}
.tobacco-search-result-main{
  display: flex;
  align-items: center;
  gap: 10px;
}
.tobacco-search-result-brand{
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #3cffc3;
  min-width: 80px;
}
.tobacco-search-result-name{
  flex: 1;
  font-size: 14px;
  color: #fff;
}
.tobacco-search-result-desc{
  display: block;
  font-size: 11px;
  line-height: 1.35;
  color: #888;
  margin-top: 2px;
  padding-left: 0;
  max-width: 100%;
}
.tobacco-search-result--in-blend{
  background: rgba(60,255,195,.06);
  border-left: 3px solid rgba(60,255,195,.5);
}
.tobacco-search-result-badge{
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: #3cffc3;
  background: rgba(60,255,195,.15);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ===== Toast ===== */
.calc-toast-container{
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.calc-toast-container .calc-toast{
  pointer-events: auto;
}
.calc-toast{
  padding: 10px 16px;
  font-size: 14px;
  color: #fff;
  background: rgba(20,20,20,.95);
  border: 1px solid rgba(60,255,195,.3);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .25s ease, transform .25s ease;
  max-width: 280px;
  cursor: pointer;
}
.calc-toast--visible{
  opacity: 1;
  transform: translateX(0);
}

/* ===== Strength level (1–10) ===== */
.strength-level{
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(60,255,195,.12);
}
.strength-level-label{
  color:#aaa;
  font-size:12px;
  font-weight:800;
  margin-bottom: 10px;
}
.strength-level-row{
  display:flex;
  gap:12px;
  align-items:center;
}
.strength-level-input{
  width:72px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(60,255,195,.2);
  background: rgba(10,10,10,.55);
  color:#fff;
  font-weight: 900;
  text-align:center;
}
.strength-level-range{
  flex: 1;
  accent-color: #3cffc3;
}

/* ===== MODAL POWER FILTERS ===== */
.modal-power-wrap{
  margin-top: 10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.modal-power-label{
  color:#aaa;
  font-size:12px;
  font-weight:800;
}
.modal-power-filters{
  margin-bottom:0;
  gap:8px;
}
.modal-power-filters .filter{
  padding:6px 12px;
  font-size:13px;
}

/* ===== BRANDS ===== */
.brand{text-align:center;cursor:pointer;transition:.3s;padding:8px}
.brand.hide{opacity:.15;pointer-events:none}
.brand:hover:not(.hide){transform:scale(1.05)}
.brand.hint-off{opacity:.35}
.brand.hint-on .brand-logo{
  border-color: rgba(60,255,195,.65);
  box-shadow: 0 0 18px rgba(60,255,195,.28);
}
.brand-logo{
  width:90px;height:90px;border-radius:50%;margin:auto;
  background:#000;border:1px solid #2a2a2a;display:flex;
  align-items:center;justify-content:center;transition:.3s
}
.brand-logo img{width:70%;height:70%;object-fit:contain}
.brand-logo-no-photo{
  display:flex;align-items:center;justify-content:center;
  width:100%;height:100%;color:#666;font-size:11px;font-weight:600;
}
.brand.active .brand-logo{
  border-color:#3cffc3;box-shadow:0 0 20px rgba(60,255,195,.6);
  background:#1a1a1a
}
.brand-name{margin-top:8px;font-size:14px;font-weight:500;color:#fff}

/* ===== MIX CARDS ===== */
.mix-card{
  background:#1a1a1a;border:1px solid #2a2a2a;border-radius:16px;
  overflow:hidden;cursor:pointer;transition:.3s;position:relative;
  min-height:260px;max-height:320px;background-size:cover;background-position:center
}
.mix-card-bg{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;z-index:0;display:block;
}
.mix-card-no-photo{
  position:absolute;inset:0;z-index:0.5;
  display:flex;align-items:center;justify-content:center;
  background:#1a1a1a;color:#666;font-size:12px;font-weight:600;
}
.mix-card:hover{
  border-color:#3cffc3;transform:translateY(-4px);
  box-shadow:0 8px 25px rgba(60,255,195,.2)
}
.mix-card.active{
  border-color:#3cffc3;box-shadow:0 0 0 2px #3cffc3 inset,
    0 0 30px rgba(60,255,195,.3)
}
.mix-card-overlay{
  background:
    radial-gradient(80% 60% at 50% 15%, rgba(0,0,0,.45) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(0,0,0,.65) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.9) 100%);
  position:absolute;top:0;left:0;right:0;bottom:0;z-index:1
}
.mix-card.active .mix-card-overlay{
  background:
    radial-gradient(80% 60% at 50% 15%, rgba(0,0,0,.58) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.95) 100%);
}
.mix-card-content{
  position:relative;z-index:2;padding:16px;height:100%;
  display:flex;flex-direction:column;justify-content:flex-end
}
.mix-card-header{
  display:flex;align-items:flex-start;margin-bottom:10px;
  padding-right: 56px; /* место под кнопку "i" */
}
.mix-card-title{
  font-size:18px;
  font-weight:700;
  color:#fff;
  margin:0;
  text-shadow:0 2px 10px rgba(0,0,0,.75)
}
.mix-card-info{
  position:absolute;top:12px;right:12px;width:30px;height:30px;
  background:rgba(60,255,195,.2);border-radius:10px;display:flex;
  align-items:center;justify-content:center;color:#3cffc3;font-size:14px;
  font-weight:900;z-index:3;
  border:1px solid rgba(60,255,195,.25);
  cursor:pointer;
  padding:0;
  line-height:1;
  backdrop-filter: blur(6px)
}
.mix-card-info:hover{
  background:rgba(10,10,10,.55);
  border-color:rgba(60,255,195,.45)
}
.mix-card-info:focus{
  outline:none;
  box-shadow: 0 0 0 2px rgba(60,255,195,.35), 0 0 20px rgba(60,255,195,.18);
}
.mix-card-ingredients{
  display:flex;flex-direction:column;gap:6px;margin-top:8px
}
.mix-card-desc{
  margin-top:10px;
  color:#aaa;
  font-size:12px;
  line-height:1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height:1.4;
}
.mix-ingredient{
  display:flex;align-items:center;gap:8px;background:rgba(0,0,0,.5);
  padding:6px 10px;border-radius:8px
}
.mix-ingredient-name{flex:1;font-size:13px;color:#fff;font-weight:500}
.mix-ingredient-percent{
  font-size:12px;color:#aaa;font-weight:600;min-width:35px
}
.mix-ingredient-bar{
  height:4px;background:rgba(255,255,255,.2);border-radius:2px;
  overflow:hidden;flex:1;max-width:80px
}
.mix-ingredient-bar-fill{
  height:100%;border-radius:2px;transition:.3s
}
.mix-ingredient-bar-fill.orange{background:#ff9900}
.mix-ingredient-bar-fill.red{background:#ff2f6d}
.mix-ingredient-bar-fill.blue{background:#4da3ff}
.mix-ingredient-bar-fill.yellow{background:#ffb000}
.mix-ingredient-bar-fill.green{background:#3cffc3}

/* Пагинация миксов */
.mixes-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
  margin-top:20px;
  padding:12px 0;
}
.mixes-pagination-btn{
  padding:8px 16px;
  border-radius:12px;
  border:1px solid rgba(60,255,195,.4);
  background:rgba(60,255,195,.1);
  color:#3cffc3;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  transition:.2s;
}
.mixes-pagination-btn:hover:not(:disabled){
  background:rgba(60,255,195,.25);
  border-color:#3cffc3;
}
.mixes-pagination-btn:disabled{
  opacity:.4;
  cursor:not-allowed;
}
.mixes-pagination-info{
  color:#888;
  font-size:13px;
}

.mix-lucky-row{
  margin-top: 10px;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.mix-lucky-btn{
  border-radius: 14px;
}

/* ===== TOTAL ===== */
.total-bar{
  position:fixed;left:0;right:0;bottom:0;background:rgba(10,10,10,.98);
  border-top:1px solid rgba(60,255,195,.3);padding:14px;
  z-index:1000;backdrop-filter:blur(10px);
  box-shadow:0 -4px 30px rgba(0,0,0,.5)
}
.total-inner{
  max-width:1200px;margin:auto;display:flex;
  justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;
  padding:0 20px
}
.total-sum{
  font-size:22px;font-weight:700;color:#3cffc3;
  text-shadow:0 0 15px rgba(60,255,195,.5)
}
.btn{
  background:linear-gradient(135deg,#3cffc3,#00ff88);
  border:none;border-radius:14px;padding:14px 26px;
  font-size:16px;font-weight:700;cursor:pointer;
  transition:.3s;color:#000;box-shadow:0 0 20px rgba(60,255,195,.3)
}
.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 0 30px rgba(60,255,195,.5)
}
.btn:active{transform:scale(.98)}

/* ===== SELECTED ITEMS ===== */
.selected-info{font-size:14px;color:#888;margin-top:8px}
.selected-info span{color:#3cffc3;text-shadow:0 0 10px rgba(60,255,195,.5)}

/* ===== MODAL ===== */
.modal-overlay{
  position:fixed;top:0;left:0;right:0;bottom:0;
  background:rgba(0,0,0,.9);display:none;
  align-items:center;justify-content:center;z-index:2000;padding:20px
}
.modal-overlay.active{display:flex}
.modal-content{
  background:#1a1a1a;border-radius:20px;max-width:500px;width:100%;
  max-height:90vh;display:flex;flex-direction:column;position:relative;
  box-shadow:0 10px 50px rgba(60,255,195,.2);
  border:1px solid rgba(60,255,195,.3)
}
.modal-header{
  padding:20px;border-bottom:1px solid #2a2a2a;
  display:flex;align-items:center;justify-content:space-between
}
.modal-brand{
  display:flex;align-items:center;gap:16px
}
.modal-brand-logo{
  width:60px;height:60px;border-radius:50%;background:#000;
  border:1px solid #3cffc3;display:flex;
  align-items:center;justify-content:center;
  box-shadow:0 0 15px rgba(60,255,195,.4)
}
.modal-brand-logo img{width:80%;height:80%;object-fit:contain}
.modal-brand-logo-no-photo{color:#666;font-size:11px;font-weight:600}
.modal-brand-name{
  font-size:18px;font-weight:600;color:#3cffc3;
  text-shadow:0 0 10px rgba(60,255,195,.5)
}
.modal-close{
  width:32px;height:32px;border:none;background:none;cursor:pointer;
  font-size:24px;color:#999;display:flex;
  align-items:center;justify-content:center;
  border-radius:50%;transition:.3s
}
.modal-close:hover{background:#2a2a2a;color:#3cffc3}
.modal-search{padding:16px 20px;border-bottom:1px solid #2a2a2a}
.search-input-wrapper{position:relative;display:flex;align-items:center}
.search-icon{
  position:absolute;left:12px;color:#999;font-size:18px;z-index:1;
  pointer-events:none
}
.search-input{
  width:100%;padding:12px 12px 12px 40px;border:1px solid #2a2a2a;
  border-radius:12px;font-size:16px;outline:none;
  transition:.3s;background:#0a0a0a;color:#fff
}
.search-input:focus{
  border-color:#3cffc3;
  box-shadow:0 0 15px rgba(60,255,195,.2)
}
.modal-list{
  flex:1;overflow-y:auto;padding:8px 0;max-height:400px
}
.modal-list::-webkit-scrollbar{width:6px}
.modal-list::-webkit-scrollbar-track{background:#0a0a0a}
.modal-list::-webkit-scrollbar-thumb{
  background:linear-gradient(135deg,#3cffc3,#00ff88);
  border-radius:3px
}
.modal-list::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(135deg,#00ff88,#3cffc3)
}
.modal-item{
  padding:12px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  cursor:pointer;
  transition:.3s;
  border-bottom:1px solid #1a1a1a
}
.modal-item-main{
  display:flex;
  flex-direction:column;
  min-width: 0;
  flex: 1;
}
.modal-item-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex: none;
}

.blend-box{
  margin-top:14px;
  padding:14px;
  border-radius: 18px;
  border: 1px solid rgba(60,255,195,.18);
  background: rgba(0,0,0,.25);
  box-shadow: 0 0 30px rgba(0,0,0,.35) inset;
}
.blend-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap: wrap;
}
.blend-title{
  color:#fff;
  font-weight: 900;
  font-size: 18px;
}
.blend-meta{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap: wrap;
}
.blend-total{
  color:#aaa;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(60,255,195,.15);
  background: rgba(10,10,10,.45);
}
.blend-total--error{
  color:#ff5078;
  border-color: rgba(255,80,120,.5);
  background: rgba(255,80,120,.12);
}
.blend-box.mix-edit-invalid{
  border-color: rgba(255,80,120,.45);
  box-shadow: 0 0 0 2px rgba(255,80,120,.2);
}

.blend-btn{
  border: 1px solid rgba(60,255,195,.25);
  background: rgba(30,30,30,.55);
  color:#fff;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 900;
  cursor:pointer;
  transition:.2s;
  box-shadow: 0 0 18px rgba(0,0,0,.25);
}
.blend-btn:hover{
  border-color: rgba(60,255,195,.6);
  transform: translateY(-1px);
}
.blend-btn:active{ transform: scale(.98); }
.blend-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}
.blend-btn.active{
  border-color: rgba(60,255,195,.65);
  box-shadow: 0 0 18px rgba(60,255,195,.18);
}
.blend-btn.primary{
  background: linear-gradient(135deg,#3cffc3,#00ff88);
  color:#000;
  border-color: transparent;
  box-shadow: 0 0 24px rgba(60,255,195,.22);
}
.blend-btn.ghost{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}
.blend-btn.danger{
  background: rgba(255,80,120,.10);
  border-color: rgba(255,80,120,.35);
  color:#ff5078;
}
.blend-btn.danger:hover{ border-color: rgba(255,80,120,.65); }

.blend-name{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.blend-input{
  width:100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(60,255,195,.18);
  background: rgba(10,10,10,.65);
  color:#fff;
  font-weight: 800;
}
.blend-input:focus{
  outline:none;
  border-color:#3cffc3;
  box-shadow: 0 0 12px rgba(60,255,195,.2);
}
.blend-name-auto{
  color:#aaa;
  font-size: 12px;
}
.blend-name-auto strong{ color:#3cffc3; }

.blend-list{ margin-top: 12px; }
.blend-add-row{
  margin-top: 12px;
}
.blend-add-tobacco{
  font-weight: 700;
}
.blend-actions{
  margin-top: 12px;
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  align-items:center;
}
.blend-pickers{
  margin: 10px 0 16px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.blend-picker-label{
  color:#aaa;
  font-size:12px;
  font-weight:800;
  margin-bottom:6px;
}
.blend-picker-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.blend-picker-row .blend-select{
  flex: 1;
}
.blend-select{
  max-width: 360px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(60,255,195,.18);
  background: rgba(10,10,10,.65);
  color:#fff;
  font-weight: 800;
}

.blend-row{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(60,255,195,.12);
  border-radius: 12px;
  margin-top: 8px;
}
.blend-row-zero{
  border-color: rgba(255,80,120,.65);
  box-shadow: 0 0 0 1px rgba(255,80,120,.25) inset;
}
.blend-row-zero .blend-row-title{
  color:#ff5078;
}
.blend-row-zero .blend-percent{
  border-color: rgba(255,80,120,.55);
}
.blend-row-left{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.blend-row-title{ color:#fff; font-weight:700; font-size: 14px; }
.blend-row-sub{ color:#aaa; font-size: 12px; }
.blend-row-right{
  display:flex;
  gap:10px;
  align-items:center;
}
.blend-percent-wrap{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:flex-end;
}
.blend-percent{
  width: 96px;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid rgba(60,255,195,.18);
  background: rgba(10,10,10,.75);
  color:#fff;
  font-weight:700;
}
.blend-chips{
  display:flex;
  flex-wrap: wrap;
  gap:8px;
  justify-content:flex-end;
  max-width: 420px;
}
.percent-chip{
  border: 1px solid rgba(60,255,195,.18);
  background: rgba(255,255,255,.06);
  color:#e8e8e8;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 900;
  cursor:pointer;
  transition:.2s;
  font-size: 12px;
}
.percent-chip:hover{
  border-color: rgba(60,255,195,.55);
  box-shadow: 0 0 14px rgba(60,255,195,.12);
}
.blend-remove{
  border: 1px solid rgba(255,80,120,.35);
  background: rgba(255,80,120,.10);
  color: #ff5078;
  border-radius: 10px;
  padding: 10px 10px;
  cursor: pointer;
  font-weight: 800;
}
.modal-item:hover{background:#222}
.modal-item.selected{background:rgba(60,255,195,.1)}
.modal-item--in-blend{
  border-left: 3px solid #3cffc3;
  background: rgba(60,255,195,.06);
}
.modal-item--in-blend:hover{ background: rgba(60,255,195,.1); }
.modal-item-badge{
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
  color: #0a0a0a;
  background: #3cffc3;
  border-radius: 999px;
  vertical-align: middle;
}
.modal-item-name{color:#fff;font-size:16px;font-weight:800}
.modal-item-desc{
  flex:1;
  color:#aaa;
  font-size:12px;
  margin-top:4px;
}
.modal-item-strength{
  color:#3cffc3;
  font-weight:900;
  font-size:14px;
  white-space:nowrap;
}
.modal-item-icon{
  width:32px;height:32px;border-radius:50%;
  background:linear-gradient(135deg,#3cffc3,#00ff88);
  display:flex;align-items:center;justify-content:center;
  color:#000;font-size:18px;font-weight:900;
  position:relative;
  user-select:none
}
.modal-item-icon--disabled{
  opacity:.25;
}

/* Tooltip для "?" (fixed layer) */
.modal-tooltip::before,
.modal-tooltip::after{
  content: none !important;
  display:none !important;
}
.global-tooltip{
  position: fixed;
  z-index: 250000;
  min-width: 180px;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(60,255,195,.22);
  background: rgba(10,10,10,.96);
  color:#e8e8e8;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 10px 30px rgba(0,0,0,.55);
  pointer-events:none;
}
.global-tooltip-arrow{
  position:absolute;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: rgba(10,10,10,.96);
  border-left: 1px solid rgba(60,255,195,.22);
  border-top: 1px solid rgba(60,255,195,.22);
}
.global-tooltip[data-pos="bottom"] .global-tooltip-arrow{
  top: -5px;
}
.global-tooltip[data-pos="top"] .global-tooltip-arrow{
  bottom: -5px;
  border-left: 0;
  border-top: 0;
  border-right: 1px solid rgba(60,255,195,.22);
  border-bottom: 1px solid rgba(60,255,195,.22);
}
.global-tooltip-text{white-space: normal;}
.modal-footer{
  padding:16px 20px;border-top:1px solid #2a2a2a;text-align:center
}
.modal-back{
  background:none;border:none;color:#3cffc3;cursor:pointer;
  font-size:16px;padding:8px;transition:.3s
}
.modal-back:hover{opacity:.7;text-shadow:0 0 10px rgba(60,255,195,.5)}

/* Responsive */
@media (max-width:768px){
  .page-title{font-size:32px}
  .calc-section-title{font-size:20px}
  .total-inner{flex-direction:column;text-align:center}
  .btn{width:100%}
  .mix-card{min-height:280px}
  .grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
}
