/* ==== B2S DESIGN v7.5 – VISAS CSS ==== */

body {
  background: #f7f8fb;
  font-family: 'Inter', sans-serif;
  color: #1f2937;
  margin: 0;
  padding: 0;
}

.b2s-section-card {
  background: #fff;
  border-radius: 22px;
  margin: 16px;
  padding: 20px;
  box-shadow: 6px 6px 12px #d0d2db, -6px -6px 12px #ffffff;
}

/* DONUT ANALIZĖS BLOKAS */
.b2s-donut-card {
  width: 260px;
  height: 260px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 8px 8px 20px #e1e1e1, -8px -8px 20px #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  animation: donutExpand 0.5s ease-out;
}

.b2s-donut-center {
  font-size: 26px;
  font-weight: 700;
  color: #1f2937;
  margin-top: 10px;
  text-align: center;
}

.b2s-donut-label {
  font-size: 16px;
  font-weight: 600;
  margin-top: 6px;
  color: #8c6cff;
  text-align: center;
}

.b2s-donut-text {
  font-size: 14px;
  color: #6b7280;
  margin-top: 6px;
  text-align: center;
}

/* BAR grafikas */
.b2s-chart-area {
  margin-top: 24px;
  background: #ffffff;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 6px 6px 16px rgba(0,0,0,0.06), -6px -6px 12px #ffffff;
}

#b2s-volume-trend {
  font-weight: bold;
  font-size: 14px;
  margin-top: 10px;
}

/* Statistikos blokas */
.b2s-stats-summary {
  font-size: 15px;
  background: #f4f4f7;
  padding: 16px;
  border-radius: 14px;
  box-shadow: inset 3px 3px 6px #d1d5db, inset -3px -3px 6px #ffffff;
  margin: 24px 0;
  color: #1f2937;
}
.b2s-stats-summary strong {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111827;
}

/* RAKTAŽODŽIŲ KORTELĖS */
.b2s-card {
  background: #ffffff;
  border-radius: 16px;
  margin: 10px 0;
  padding: 16px 20px;
  position: relative;
  box-shadow: 6px 6px 16px rgba(0,0,0,0.06), -6px -6px 16px #ffffff;
  transition: transform 0.2s ease;
}
.b2s-card:hover {
  transform: scale(1.02);
}
.b2s-card.selected {
  background: #f5f1ff !important;
  box-shadow: inset 2px 2px 6px #d3c7ff, inset -2px -2px 6px #ffffff;
  border-left: 6px solid #8c6cff !important;
  transition: background 0.2s ease;
}

/* Žodžių ir KD/KEI meta informacija */
.b2s-word {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 4px;
  color: #1f2937;
}
.b2s-meta {
  font-size: 14px;
  color: #4b5563;
  margin-top: 4px;
}

/* AI rekomendacijos žyma ir strip */
.b2s-ai-hint {
  font-size: 13px;
  font-weight: 600;
  color: #8c6cff;
  margin-top: 10px;
}
.b2s-ai-strip {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

/* AI subkortelės */
.b2s-subcard-ai {
  background: #f9f7ff;
  border-left: 6px solid #8c6cff;
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0;
  box-shadow: inset 3px 3px 8px #e0dffd, inset -3px -3px 8px #ffffff;
  font-size: 15px;
  color: #1f2937;
  animation: glowPulse 2s ease-in-out infinite;
}

/* Pasirinkti raktažodžiai virš lentelės */
#b2s-selected-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  margin-top: 20px;
  background: #f9fafb;
  border-radius: 14px;
  box-shadow: inset 2px 2px 6px #d1d5db, inset -2px -2px 6px #ffffff;
}
#b2s-keyword-tags div {
  background: #e0e7ff;
  padding: 6px 14px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.05);
  color: #1f2937;
}

/* Tęsti mygtukas */
#b2s-continue-to-step3 {
  background: #8c6cff;
  color: white;
  padding: 8px 18px;
  font-size: 14px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  margin-left: auto;
  margin-top: 12px;
  box-shadow: 2px 4px 8px rgba(140, 108, 255, 0.2);
  transition: all 0.2s ease-in-out;
}
#b2s-continue-to-step3:hover {
  background: #7b5eff;
}

/* Vibracija */
@keyframes vibrate {
  0% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}
.b2s-vibrate {
  animation: vibrate 0.3s linear;
}

/* Glow animacija */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 10px #8c6cff44; }
  50% { box-shadow: 0 0 20px #8c6cff; }
}
.glow {
  animation: glowPulse 2.5s ease-in-out infinite;
}

/* Donut animacija */
@keyframes donutExpand {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* === STEP 3 PASIRINKIMAI (tonas, ilgis, asmuo) === */
.b2s-style-option {
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 4px 4px 12px #d1d5db, -4px -4px 12px #ffffff;
  margin-bottom: 16px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}
.b2s-style-option:hover {
  transform: scale(1.02);
}
.b2s-style-option.selected {
  background: #ece9fe;
  box-shadow: 0 0 0 3px #d6d0ff inset;
  border-left: 6px solid #8c6cff;
}

/* === STEP 4 – STRATEGIJOS KŪRIMAS ANIMACIJA === */
.b2s-loading-strategy {
  background: #f3f3f9;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  font-size: 16px;
  color: #6b7280;
  box-shadow: inset 4px 4px 10px #d1d5db, inset -4px -4px 10px #ffffff;
  animation: pulseLight 2s infinite ease-in-out;
}
@keyframes pulseLight {
  0%, 100% { box-shadow: 0 0 12px #d8d8ff; }
  50% { box-shadow: 0 0 22px #bcbcff; }
}

/* === STEP 5 – H1 pasirinkimai === */
.b2s-h1-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 4px 4px 12px rgba(0,0,0,0.05), -4px -4px 12px rgba(255,255,255,1);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.b2s-h1-card:hover {
  transform: scale(1.015);
}
.b2s-h1-card.selected {
  background: #f3f0fe;
  border-left: 6px solid #8c6cff;
  box-shadow: inset 2px 2px 6px #d4cbff, inset -2px -2px 6px #ffffff;
}

/* === STEP 5 – H2/H3 peržiūros dešinėje === */
.b2s-h-structure-box {
  background: #f9f9fb;
  padding: 16px;
  border-radius: 16px;
  box-shadow: inset 3px 3px 6px #d1d5db, inset -3px -3px 6px #ffffff;
  font-size: 14px;
  color: #1f2937;
  max-height: 280px;
  overflow-y: auto;
}

/* == STRATEGIJOS BLOKAI STEP4 == */
.b2s-strategy-block {
  background: #ffffff;
  padding: 18px 20px;
  border-radius: 16px;
  margin: 16px 0;
  box-shadow: 6px 6px 12px rgba(0,0,0,0.05), -6px -6px 12px rgba(255,255,255,1);
  animation: fadeInUp 0.4s ease;
}
/* === DONUT BLOKAS – apvali kortelė === */
.b2s-donut-card {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: #ffffff;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  box-shadow: 8px 8px 20px #e1e1e1, -8px -8px 20px #ffffff;
  animation: donutExpand 0.5s ease-out;
}
@keyframes donutExpand {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.b2s-donut-center {
  font-size: 26px;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  margin-top: 12px;
}
.b2s-donut-label {
  font-size: 16px;
  font-weight: 600;
  margin-top: 6px;
  color: #8c6cff;
}
.b2s-donut-text {
  font-size: 14px;
  color: #6b7280;
  text-align: center;
  margin-top: 4px;
}

/* === MOBILIAI – kortelės 100% pločio ir be siaurėjimo apačioje === */
@media (max-width: 768px) {
  .b2s-section-card,
  .b2s-card,
  .b2s-subcard-ai,
  .b2s-summary-card,
  .b2s-chart-area {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 22px;
  }
}

/* === RAKTAŽODŽIŲ KORTELĖ (aktyvi + AI) === */
.b2s-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  margin: 10px 0;
  padding: 14px 20px;
  box-shadow: 6px 6px 16px rgba(0,0,0,0.06), -6px -6px 16px #ffffff;
  transition: all 0.2s ease;
}
.b2s-card:hover {
  transform: scale(1.01);
}
.b2s-card.selected {
  background: #f4f0ff !important;
  border-left: 6px solid #8c6cff !important;
  box-shadow: inset 2px 2px 6px #d3c7ff, inset -2px -2px 6px #ffffff;
}
.b2s-word {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
}
.b2s-meta {
  font-size: 14px;
  color: #4b5563;
}
.b2s-ai-hint {
  font-size: 13px;
  font-weight: 600;
  color: #8c6cff;
  margin-top: 10px;
}
.b2s-ai-strip {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

/* === AI Rekomenduojama subkortelė === */
.b2s-subcard-ai {
  background: #f9f7ff;
  border-left: 6px solid #8c6cff;
  border-radius: 16px;
  padding: 16px;
  margin: 14px 0;
  box-shadow: inset 3px 3px 8px #e0dffd, inset -3px -3px 8px #ffffff;
  font-size: 15px;
  color: #1f2937;
  animation: glowPulse 2s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 10px #8c6cff44; }
  50% { box-shadow: 0 0 20px #8c6cff; }
}
/* === STEP 3: STILIAUS PASIRINKIMAI === */
.b2s-style-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}
.b2s-style-block {
  flex: 1 1 140px;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 16px;
  text-align: center;
  box-shadow: 6px 6px 12px rgba(0,0,0,0.05), -6px -6px 12px #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.b2s-style-block:hover {
  transform: scale(1.03);
}
.b2s-style-block.selected {
  background: #f4f0ff;
  box-shadow: inset 3px 3px 8px #d9d3ff, inset -3px -3px 8px #ffffff;
  border-left: 6px solid #8c6cff;
}
.b2s-style-block span {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-top: 8px;
}
.b2s-style-block i {
  font-size: 26px;
  color: #8c6cff;
}

/* === STEP 4: STRATEGIJOS GENERAVIMAS === */
.b2s-loading-box {
  text-align: center;
  margin: 40px auto;
  padding: 30px;
  border-radius: 20px;
  background: #ffffff;
  width: 90%;
  max-width: 500px;
  box-shadow: 6px 6px 16px rgba(0,0,0,0.06), -6px -6px 16px #ffffff;
}
.b2s-loading-box h3 {
  font-size: 20px;
  color: #1f2937;
  margin-bottom: 12px;
}
.b2s-loader-circle {
  width: 70px;
  height: 70px;
  margin: 20px auto;
  border-radius: 50%;
  border: 5px solid #8c6cff;
  border-top: 5px solid transparent;
  animation: spin 1.2s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}
.b2s-loading-text {
  font-size: 15px;
  color: #6b7280;
  margin-top: 14px;
}



/* === STEP 5: STRUKTŪRINIS PERŽIŪRĖJAS (H1/H2/H3) === */
.b2s-h-structure {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 768px) {
  .b2s-h-structure {
    flex-direction: row;
  }
}
.b2s-h1-choices {
  flex: 1;
  padding: 20px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 6px 6px 14px rgba(0,0,0,0.06), -6px -6px 14px #ffffff;
}
.b2s-h1-item {
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f9fafb;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 5px solid #8c6cff11;
}
.b2s-h1-item:hover {
  background: #ece9fe;
}
.b2s-h1-item.selected {
  background: #f4f0ff;
  border-left: 5px solid #8c6cff;
  box-shadow: inset 2px 2px 6px #ddd4ff, inset -2px -2px 6px #ffffff;
}
.b2s-h1-item strong {
  font-size: 15px;
  color: #1f2937;
}
.b2s-h2h3-preview {
  flex: 1;
  padding: 20px;
  background: #f9fafb;
  border-radius: 18px;
  box-shadow: inset 4px 4px 12px #d1d5db, inset -4px -4px 12px #ffffff;
}
.b2s-h2h3-preview h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #4b5563;
}
.b2s-h2h3-preview ul {
  margin: 0;
  padding-left: 18px;
}
.b2s-h2h3-preview li {
  font-size: 14px;
  color: #374151;
  margin-bottom: 4px;
}

/* === BENDRASIS ACTION MYGTUKAS === */
.b2s-main-btn {
  background: #8c6cff;
  color: white;
  padding: 10px 22px;
  font-size: 15px;
  border-radius: 22px;
  border: none;
  margin-top: 20px;
  cursor: pointer;
  box-shadow: 3px 3px 8px rgba(140, 108, 255, 0.3);
  transition: background 0.2s ease;
}
.b2s-main-btn:hover {
  background: #7b5eff;
}
<!-- templates/steps/step2.php -->
<div id="step2" class="b2s-section-card" style="display:none;">
  <h3>Raktažodžio analizė</h3>

  <!-- DONUT + METRIKOS BLOKAS -->
  <div class="b2s-donut-card fade-in-up">
    <div id="b2seo-info-keyword" class="b2s-word">–</div>
    <div class="b2s-meta">
      🔍 Paieškos: <strong id="b2seo-info-volume">–</strong><br>
      📈 KD%: <strong id="b2seo-info-kd">–</strong><br>
      📐 KEI: <strong id="b2seo-info-kei">–</strong><br>
      💰 CPC: <strong id="b2seo-info-cpc">–</strong>
    </div>
    <canvas id="b2seo-kd-chart" width="160" height="160"></canvas>
    <div class="b2s-donut-center" id="b2seo-kd-value">–%</div>
    <div class="b2s-donut-label" id="b2seo-kd-label">–</div>
    <div class="b2s-donut-text" id="b2seo-kd-description">–</div>
  </div>

  <!-- GRAFIKAS: 12 mėn. dinamika -->
  <div class="b2s-chart-area fade-in-up">
    <h4>Paieškų dinamika (12 mėn.)</h4>
    <canvas id="b2s-volume-chart" height="140"></canvas>
    <div id="b2s-volume-trend">–</div>
  </div>

  <!-- RAKTAŽODŽIŲ STATISTIKA -->
  <div class="b2s-stats-summary fade-in-up">
    <strong>Raktažodžių statistika</strong>
    <div>Viso raktažodžių: <span id="b2s-total-keywords">–</span></div>
    <div>Viso paieškų per mėn.: <span id="b2s-total-volume">–</span></div>
  </div>

  <!-- PASIRINKTI RAKTAŽODŽIAI -->
  <div id="b2s-selected-keywords" style="display:none;">
    <div id="b2s-keyword-tags"></div>
    <button id="b2s-continue-to-step3">Tęsti →</button>
  </div>

  <!-- RAKTAŽODŽIŲ KORTELĖS -->
  <div id="b2s-keyword-table" class="fade-in-up"></div>

  <!-- AI SERP DOMENAI -->
  <div id="b2s-serp-list" class="fade-in-up"></div>
</div>

/* === DONUT BLOKAS – apvali kortelė === */
.b2s-donut-card {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: #ffffff;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  box-shadow: 8px 8px 20px #e1e1e1, -8px -8px 20px #ffffff;
  animation: donutExpand 0.5s ease-out;
}
@keyframes donutExpand {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.b2s-donut-center {
  font-size: 26px;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  margin-top: 12px;
}
.b2s-donut-label {
  font-size: 16px;
  font-weight: 600;
  margin-top: 6px;
  color: #8c6cff;
}
.b2s-donut-text {
  font-size: 14px;
  color: #6b7280;
  text-align: center;
  margin-top: 4px;
}

/* === MOBILIAI – kortelės 100% pločio ir be siaurėjimo apačioje === */
@media (max-width: 768px) {
  .b2s-section-card,
  .b2s-card,
  .b2s-subcard-ai,
  .b2s-summary-card,
  .b2s-chart-area {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 22px;
  }
}

/* === RAKTAŽODŽIŲ KORTELĖ (aktyvi + AI) === */
.b2s-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  margin: 10px 0;
  padding: 14px 20px;
  box-shadow: 6px 6px 16px rgba(0,0,0,0.06), -6px -6px 16px #ffffff;
  transition: all 0.2s ease;
}
.b2s-card:hover {
  transform: scale(1.01);
}
.b2s-card.selected {
  background: #f4f0ff !important;
  border-left: 6px solid #8c6cff !important;
  box-shadow: inset 2px 2px 6px #d3c7ff, inset -2px -2px 6px #ffffff;
}
.b2s-word {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
}
.b2s-meta {
  font-size: 14px;
  color: #4b5563;
}
.b2s-ai-hint {
  font-size: 13px;
  font-weight: 600;
  color: #8c6cff;
  margin-top: 10px;
}
.b2s-ai-strip {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

/* === AI Rekomenduojama subkortelė === */
.b2s-subcard-ai {
  background: #f9f7ff;
  border-left: 6px solid #8c6cff;
  border-radius: 16px;
  padding: 16px;
  margin: 14px 0;
  box-shadow: inset 3px 3px 8px #e0dffd, inset -3px -3px 8px #ffffff;
  font-size: 15px;
  color: #1f2937;
  animation: glowPulse 2s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 10px #8c6cff44; }
  50% { box-shadow: 0 0 20px #8c6cff; }
}

/* === FIX: PAŠALINTAS DUBLIUOTAS DONUT BLOKAS (jau yra viršuje) === */
/* PAKEITIMŲ DALIS PRASIDEDA ČIA */

/* === BOTTOM TOOLBAR – APATINĖ ĮRANKIŲ JUOSTA === */
.b2s-bottombar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  z-index: 999;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.b2s-bottombar button {
  background: none;
  border: none;
  font-size: 22px;
  color: #8c6cff;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  position: relative;
}

.b2s-bottombar button:hover {
  transform: scale(1.2);
  color: #6a4ce0;
}

.b2s-bottombar .active {
  background: #f4f0ff;
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 0 12px #c9bfff;
}

/* === MOBILE FIX: Nepersiaurinti kortelių ir neužlipti ant juostos === */
@media (max-width: 768px) {
  body {
    padding-bottom: 80px; /* kad netrukdytų juosta */
  }
  .b2s-section-card,
  .b2s-card,
  .b2s-subcard-ai,
  .b2s-summary-card,
  .b2s-chart-area {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 22px;
  }
}

.b2s-bottombar .active {
  background: #f4f0ff;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 0 12px #c9bfff;
}

.b2s-bottombar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  z-index: 999;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.b2s-bottombar .active {
  background: #f4f0ff;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 0 12px #c9bfff;
}
.b2s-bottombar img {
  width: 28px;
  height: 28px;
  opacity: 0.85;
  transition: transform 0.2s ease;
}
.b2s-bottombar div:hover img {
  transform: scale(1.2);
  opacity: 1;
}

.b2s-bottombar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  z-index: 999;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  gap: 26px;
}
.b2s-bottombar img {
  width: 28px;
  height: 28px;
  opacity: 0.85;
  transition: transform 0.2s ease;
}
.b2s-bottombar div:hover img {
  transform: scale(1.2);
  opacity: 1;
}
.b2s-bottombar .active {
  background: #f4f0ff;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 0 12px #c9bfff;
}

.b2s-card {
  border-left: 8px solid transparent;
  transition: all 0.3s ease;
}
.b2s-card .b2s-ai-strip {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  border-radius: 12px 0 0 12px;
}
.b2s-card.selected {
  background: #f4efff !important;
  border-left: 8px solid #8c6cff;
  box-shadow: 0 0 0 2px rgba(140, 108, 255, 0.25);
}
#b2seo-kd-chart {
  max-width: 260px;
  margin: 0 auto;
}
@media(min-width:768px) {
  #b2seo-kd-chart {
    max-width: 180px;
  }
}



/* === Step 2 Kortelės ir AI rekomendacija === */

.b2s-card {
  position: relative;
  background: #ffffff;
  border-radius: 22px;
  margin: 12px 0;
  padding: 18px 20px;
  box-shadow: 6px 6px 16px rgba(0,0,0,0.05), -4px -4px 12px rgba(255,255,255,0.7);
  transition: all 0.25s ease;
  width: 100%;
}

.b2s-card.selected {
  background: #f3f4ff;
  box-shadow: 4px 4px 12px rgba(140, 108, 255, 0.3), -3px -3px 10px rgba(255, 255, 255, 0.6);
}

.b2s-ai-strip {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  border-radius: 6px 0 0 6px;
}

.b2s-word {
  font-weight: 600;
  font-size: 17px;
  color: #1f2937;
  margin-bottom: 8px;
}

.b2s-meta {
  font-size: 14px;
  color: #555;
}

.b2s-ai-hint-box {
  margin-top: 14px;
  background: #e6f0ff;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 14px;
  color: #333;
  font-weight: 500;
  line-height: 1.4;
}

/* Vibracija (shake) */
.b2s-vibrate {
  animation: vibrate 0.3s linear;
}

@keyframes vibrate {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

/* === Donut center % === */
#b2seo-kd-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
}

#b2seo-kd-label {
  text-align: center;
  font-size: 16px;
  margin-top: 12px;
}

#b2seo-kd-description {
  text-align: center;
  font-size: 14px;
  color: #444;
  margin-top: 6px;
  padding: 0 10px;
}

/* === Apatinė įrankių juosta === */


/* Užtikrinti, kad puslapis neslėptų apatinės juostos */
body {
  padding-bottom: 90px;
}

.b2s-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.06);
  margin: 16px 0;
  padding: 20px;
  transition: transform 0.2s;
  cursor: pointer;
  overflow: hidden;
}

.b2s-card:hover {
  transform: scale(1.01);
}

.b2s-ai-strip {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  background: #34c759;
}

.b2s-ai-hint {
  background: #e5f0ff;
  color: #4b4b4b;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  display: inline-block;
  font-weight: 500;
}

@media (max-width: 600px) {
  .b2s-card {
    padding: 16px;
    border-radius: 16px;
  }
}

.b2s-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  margin: 16px 0;
  padding: 18px 20px 20px 20px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.b2s-card:hover {
  transform: translateY(-1px);
}

.b2s-ai-strip {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 100%;
  background: #34c759;
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}
.b2s-ai-hint {
  background: #e4f1ff;
  color: #1f2937;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}


/* === Step 2 Kortelių stilius === */
.b2s-card {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  padding: 20px 20px 20px 18px;
  margin: 16px 0;
  transition: all 0.3s ease;
  display: block;
  cursor: pointer;
  overflow: hidden;
}

/* Pasirinkta kortelė */
.b2s-card.selected {
  background: #f5f7ff;
  box-shadow: 0 8px 20px rgba(80, 102, 242, 0.15);
  border-left: 6px solid #8c6cff;
}

/* Šoninė spalvinė juostelė (KEI indikatorius) */
.b2s-ai-strip {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  border-radius: 8px 0 0 8px;
  background: #e0e0e0;
}

/* Raktažodžio tekstas */
.b2s-word {
  font-weight: 600;
  font-size: 18px;
  color: #1f2937;
  margin-bottom: 4px;
}

/* Mažesnė metrika */
.b2s-meta {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

/* AI rekomendacijos blokas */
.b2s-ai-hint-box {
  background: #e6f0ff;
  color: #333;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  line-height: 1.4;
  margin-top: 12px;
}

/* Vibracijos efektas */
.b2s-vibrate {
  animation: b2sVibrate 0.25s linear 1;
}

@keyframes b2sVibrate {
  0% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

/* Kortelės žyma viršuje */
.b2s-tag {
  display: inline-block;
  font-size: 13px;
  padding: 4px 10px;
  margin: 4px;
  border-radius: 12px;
  background: #eee;
  color: #1f2937;
  font-weight: 500;
}


}

.b2s-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  margin: 16px 0;
  padding: 18px 16px;
  box-shadow: 6px 6px 14px rgba(0, 0, 0, 0.05), -4px -4px 10px rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Šoninė juostelė tik jei AI rekomenduoja */
.b2s-card .b2s-ai-strip {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

/* AI hint kortelės viduje */
.b2s-ai-hint-box {
  background: #e6f0ff;
  color: #1f2937;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  margin-top: 12px;
  line-height: 1.4;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.b2s-style-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.05), -2px -2px 6px rgba(255,255,255,0.9);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.b2s-style-card:hover {
  box-shadow: 6px 6px 14px rgba(0,0,0,0.07), -3px -3px 8px rgba(255,255,255,1);
}

.b2s-style-card.selected {
  border-color: #8c6cff;
  background: #f5f3ff;
}

.b2s-style-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.b2s-style-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.b2s-style-description {
  font-size: 14px;
  color: #555;
}

//-- STEP 4 – GPT struktūros generavimas --
  .b2s-step4-card {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.06), -3px -3px 8px rgba(255,255,255,0.9);
  }
  .b2s-step4-card h3 {
    margin-top: 0;
    color: #1f2937;
  }
  .b2s-step4-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin-top: 6px;
    margin-bottom: 18px;
    background: #f9f9fb;
    resize: vertical;
  }
  .b2s-generate-btn {
    background: #8c6cff;
    color: #fff;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(140, 108, 255, 0.3);
    transition: 0.2s ease;
  }
  .b2s-generate-btn:hover {
    background: #7a58e6;
  }
  .b2s-loader {
    text-align: center;
    font-size: 15px;
    padding: 12px;
    color: #666;
    display: none;
  }
  
  .b2s-step4-card {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.06), -3px -3px 8px rgba(255,255,255,0.9);
  }
  .b2s-step4-card h3 {
    margin-top: 0;
    color: #1f2937;
  }
  .b2s-step4-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin-top: 6px;
    margin-bottom: 18px;
    background: #f9f9fb;
    resize: vertical;
  }
  .b2s-generate-btn {
    background: #8c6cff;
    color: #fff;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(140, 108, 255, 0.3);
    transition: 0.2s ease;
  }
  .b2s-generate-btn:hover {
    background: #7a58e6;
  }
  .b2s-loader {
    text-align: center;
    font-size: 15px;
    padding: 12px;
    color: #666;
    display: none;
  }
  .b2s-status-box {
  background: #f9fafc;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
}

.b2s-loader {
  margin: 0 auto 14px;
  width: 32px;
  height: 32px;
  border: 4px solid #ddd;
  border-top: 4px solid #8c6cff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.b2s-h1-item {
  padding: 10px 14px;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
}
.b2s-h1-item.selected {
  border-color: #8c6cff;
  background: #f3f0ff;
  font-weight: bold;
}
.b2s-h2 {
  margin: 12px 0 4px;
  font-weight: 600;
  font-size: 15px;
}
.b2s-h3 {
  margin-left: 20px;
  color: #666;
  font-size: 14px;
}

.b2s-strategy-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px;
  background: #f9f9ff;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

.b2s-loader-ring {
  width: 72px;
  height: 72px;
  border: 8px solid #d4d1e7;
  border-top: 8px solid #8c6cff;
  border-radius: 50%;
  animation: b2s-spin 1.1s linear infinite;
  margin-bottom: 16px;
}

@keyframes b2s-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.b2s-loader-text {
  text-align: center;
  font-size: 18px;
  color: #1f2937;
}

.b2s-loader-text strong {
  font-weight: bold;
}

.b2s-loader-sub {
  font-size: 14px;
  color: #6b7280;
  margin-top: 6px;
}

.b2s-load-step {
  padding: 10px;
  border-radius: 12px;
  background: #f3f3fa;
  font-weight: 500;
  transition: all 0.3s;
}
.b2s-load-step.active {
  background: #8c6cff;
  color: #fff;
}
.b2s-info-card {
  background: #f8f9fb;
  border-left: 6px solid #8c6cff;
  padding: 16px;
  border-radius: 12px;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.b2s-progress-container {
  margin: 20px 0;
}

}
.b2s-motivation-zone {
  margin-top: 20px;
  text-align: center;
}
.b2s-tip-card {
  background: #f3f0ff;
  color: #1f2937;
  border-radius: 16px;
  padding: 16px;
  font-size: 16px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.05);
  display: inline-block;
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.b2s-loading-stage {
  font-size: 20px;
  padding: 16px;
  animation: pulse 1.2s infinite;
}
.b2s-fact-card {
  background: #f4f4ff;
  padding: 14px 18px;
  margin: 10px 0;
  border-radius: 12px;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
@keyframes pulse {
  0% {opacity: 0.6;}
  50% {opacity: 1;}
  100% {opacity: 0.6;}
}

.b2s-strategy-loader {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.b2s-loading-stage {
  font-size: 16px;
  padding: 10px 16px;
  background: #f4f4f8;
  border-radius: 14px;
  box-shadow: inset 2px 2px 4px #dcdde1, inset -2px -2px 4px #ffffff;
  opacity: 0.4;
  transition: all 0.3s ease;
}

.b2s-loading-stage.active {
  background: #ffffff;
  opacity: 1;
  animation: pulse 1.3s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.b2s-fact-zone {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.b2s-fact-card {
  background: #ffffff;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}

.b2s-fact-card:hover {
  transform: scale(1.02);
}



.b2s-glowing-ball {
  position: fixed;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #a78bfa, #7c3aed);
  box-shadow: 0 0 18px #a78bfa, 0 0 36px #7c3aed;
  pointer-events: none;
  z-index: 9999;
}

.b2s-h2-list, .b2s-h3-list {
  list-style: none;
  padding-left: 0;
}

.b2s-h2-draggable, .b2s-h3-draggable {
  padding: 6px 14px;
  margin: 8px 0;
  border-radius: 12px;
  background: #f3f4f6;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
  cursor: grab;
  transition: transform 0.2s ease;
}

.b2s-h2-draggable:active, .b2s-h3-draggable:active {
  cursor: grabbing;
  box-shadow: 0 0 0 2px #a78bfa inset;
}

.dragging {
  opacity: 0.7;
  transform: scale(1.04);
}

.b2s-h1-item, .b2s-h2, .b2s-h3 {
  padding: 10px 14px;
  background: #f8f9fb;
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 16px;
}
.b2s-h1-item.selected {
  background: #e0e7ff;
  font-weight: bold;
}
.b2s-button {
  padding: 8px 16px;
  background: #6366f1;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.b2s-glow {
  box-shadow: 0 0 12px #a78bfa;
}

.b2s-h1-recommended {
  background: #fef8e7;
  border-left: 4px solid #f3c14c;
  box-shadow: 0 2px 8px rgba(243, 193, 76, 0.3);
}

.b2s-ai-tag {
  display: inline-block;
  font-size: 13px;
  color: #f3a900;
  background: #fff7d6;
  border-radius: 12px;
  padding: 2px 10px;
  margin-left: 10px;
  font-weight: 500;
}


.b2s-card-saving {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  padding: 18px;
  margin-bottom: 16px;
  font-size: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.b2s-card-saving.active {
  opacity: 1;
  transform: translateY(0);
}
.b2s-icon-pulse {
  width: 32px;
  height: 32px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}
.b2s-saved-time {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 16px;
}

.b2s-strategy-animation {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.b2s-strategy-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 4px 6px 12px rgba(0, 0, 0, 0.06);
  animation: fadeIn 0.6s ease-in-out;
}

.b2s-strategy-card img {
  width: 26px;
  height: 26px;
  animation: none;
  transition: transform 0.3s ease;
}

.b2s-strategy-card.animate img.pulse {
  animation: pulse 1.4s infinite ease-in-out;
}

.b2s-saved-time {
  margin-top: 16px;
  font-weight: bold;
  font-size: 17px;
  color: #1f2937;
}

.b2s-loader-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #8c6cff, #f3c14c);
  background-size: 300% 100%;
  animation: progressBar 2s infinite linear;
  border-radius: 4px;
  margin-bottom: 12px;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes progressBar {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

.b2s-loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #8c6cff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 1s linear infinite;
  margin: 12px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.b2s-strategy-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  margin-bottom: 12px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.b2s-icon.pulse {
  display: inline-block;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.b2s-loader-box {
  text-align: center;
  padding: 20px 0;
}

.b2s-loader {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 4px solid #d1d5db;
  border-top: 4px solid #8b5cf6;
  animation: spin 1s linear infinite;
  margin: 0 auto 12px;
}

.pulse {
  animation: pulse 1s infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

.b2s-progress-wrapper {
  background: #e5e7eb;
  border-radius: 8px;
  height: 12px;
  overflow: hidden;
}

.b2s-progress-track {
  width: 100%;
  height: 12px;
}

}

.b2s-strategy-steps .b2s-strategy-card {
  padding: 10px 14px;
  background: #f3f4f6;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.04);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.b2s-icon {
  font-weight: bold;
  color: #34c759;
}

.b2s-error-box {
  background: #fee2e2;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 8px;
}

.b2s-progress-wrapper {
  background: #e0e0e0;
  border-radius: 12px;
  height: 12px;
  margin: 20px 0;
  overflow: hidden;
}
.b2s-progress-bar {
  height: 100%;
  width: 0%;
  background: #8c6cff;
  transition: width 0.5s ease-in-out;
}
.b2s-strategy-card {
  background: #f9f9fb;
  margin: 8px 0;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.b2s-json-box {
  background: #f0f0f5;
  margin-top: 24px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  overflow-x: auto;
}
.b2s-strategy-box {
  margin: 10px 0;
}

/* STEP 5 dviejų stulpelių layout */
.b2s-step5-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 16px;
}

.b2s-h1-list {
  flex: 1 1 40%;
  min-width: 260px;
}

.b2s-h2h3-output {
  flex: 1 1 55%;
  background: #f9f9fb;
  border-radius: 14px;
  padding: 16px;
  min-height: 200px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}

/* H1 kortelė */
.b2s-h1-item {
  border: 1px solid #ccc;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.b2s-h1-item:hover {
  background: #f2f2ff;
}

.b2s-h1-item.selected {
  background: #e9e4ff;
  border-color: #8c6cff;
}

.b2s-ai-label {
  display: inline-block;
  background: #8c6cff;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 8px;
}

/* H2 / H3 išdėstymas */
.b2s-h2 {
  font-weight: bold;
  margin-top: 12px;
}

.b2s-h3 {
  padding-left: 16px;
  opacity: 0.9;
}

.b2s-h1-item {
  background: #f5f6fa;
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease;
}
.b2s-h1-item.selected {
  background: #e0dfff;
  border-left: 4px solid #8c6cff;
}
.b2s-h2, .b2s-h3 {
  padding: 6px 12px;
  margin: 4px 0;
  border-radius: 8px;
  background: #f2f2f2;
}
.b2s-h2 {
  font-weight: bold;
}
.b2s-h3 {
  margin-left: 20px;
  opacity: 0.9;
}
.b2s-ai-label {
  background: #8c6cff;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 8px;
}

#b2s-motivation-box.fade-in {
  animation: fadeInMotivation 1s ease-in-out;
}
@keyframes fadeInMotivation {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.glow-animate {
  animation: glowPulse 1.2s ease-in-out;
}

@keyframes glowPulse {
  0% { box-shadow: 0 0 0 rgba(140,108,255,0.2); transform: scale(1); }
  50% { box-shadow: 0 0 24px rgba(140,108,255,0.6); transform: scale(1.02); }
  100% { box-shadow: 0 0 0 rgba(140,108,255,0.2); transform: scale(1); }
}


.b2s-progress-track {
  width: 100%;
  height: 14px;
  border-radius: 10px;
  background: #e5e7eb;
  margin: 20px 0;
  overflow: hidden;
}

.b2s-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #8c6cff, #60a5fa);
  box-shadow: 0 0 14px rgba(140, 108, 255, 0.6);
  border-radius: 10px;
}

.b2s-seo-motivation-card {
  background: #f9fafb;
  border-left: 6px solid #8c6cff;
  padding: 16px;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  border-radius: 14px;
  transition: all 0.3s ease;
}

.b2s-step7-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
}

.b2s-html-preview {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.05);
  min-height: 160px;
  color: #1f2937;
  font-size: 16px;
  overflow-y: auto;
                 
                 
                 
                 
                 
//============================================================================


//step 1

/* === ĮVESTIES LAUKAS === */
.b2s-input-large {
 font-size: 18px;
 padding: 14px 20px;
 border-radius: 16px;
 border: none;
 background: #f9f9fb;
 box-shadow: inset 4px 4px 8px #e2e2e9, inset -4px -4px 8px #ffffff;
}

.b2s-input {
 width: 100%;
 padding: 14px;
 border-radius: 12px;
 border: 1px solid #e0e0e0;
 background: #f9fafb;
 font-size: 16px;
 color: #1f2937;
 height: 50px;
 font-size: 1.2em;
 padding-left: 48px;
}

/* === MYGTUKAS "Ieškoti" === */
#b2s-search,
.b2s-btn-neumorphic {
 background: linear-gradient(135deg, #8c6cff, #a892ff);
 color: white;
 padding: 12px 28px;
 font-size: 1.1em;
 font-weight: bold;
 border: none;
 border-radius: 30px;
 box-shadow: 6px 6px 12px #d1d5db, -6px -6px 12px #ffffff;
 display: flex;
 align-items: center;
 gap: 8px;
 cursor: pointer;
 transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#b2s-search:hover {
 transform: scale(1.03);
 box-shadow: 4px 4px 8px #bbb5ff, -4px -4px 8px #fff;
}

/* === KORTELĖS: Režimo pasirinkimai === */
.b2s-style-options {
 display: flex;
 flex-wrap: wrap;
 gap: 12px;
 margin-bottom: 30px;
}

.b2s-style-block {
 background: #ffffff;
 border-radius: 18px;
 padding: 16px;
 flex: 1 1 100%;
 box-shadow: 4px 4px 12px #d4d4d4, -4px -4px 12px #ffffff;
 transition: all 0.2s ease;
 text-align: center;
}

.b2s-style-block.selected {
 border-left: 6px solid #8c6cff;
 background: #f3f0ff;
}

/* === AI patarimas === */
.b2s-subcard-ai {
 padding: 14px;
 border-radius: 14px;
 font-weight: 500;
 background: #fef8df;
 box-shadow: inset 2px 2px 8px #e6e6e6;
 margin-top: 20px;
}

/* === KORTELEI === */
.b2s-step {
 padding: 24px;
 margin-bottom: 30px;
 background: #ffffff;
 border-radius: 22px;
 box-shadow: 8px 8px 24px #d1d5db, -8px -8px 24px #ffffff;
}

/* === Formos išdėstymas (kalba + šalis) === */
.b2s-form-flex {
 display: flex;
 flex-direction: column;
 gap: 12px;
}

/* === Mygtuko pozicija === */
.b2s-button-wrap {
 text-align: right;
 margin: 24px 0;
}

/* === Ikonos bendros === */
.b2s-icon {
 width: 20px;
 height: 20px;
 vertical-align: middle;
 margin-right: 6px;
}

/* === Mobile responsyvus === */
@media (max-width: 767px) {
 .b2s-style-options {
   flex-direction: column;
 }

 .b2s-style-block {
   flex: 1 1 100%;
 }

 .b2s-button-wrap {
   text-align: center;
   margin-top: 12px;
 }

 #b2s-search {
   width: 100%;
   justify-content: center;
 }
}

@media (min-width: 768px) {
 .b2s-form-flex {
   flex-direction: row;
   align-items: flex-end;
   justify-content: space-between;
 }

 .b2s-form-flex .b2s-subcard {
   flex: 1;
   margin-right: 16px;
 }

 .b2s-button-wrap {
   margin-top: 0;
 }
}

/* Donut kortelės sritis */
.b2s-donut-wrapper {
 padding: 20px;
 border-radius: 22px;
 background: #ffffff;
 box-shadow: 6px 6px 14px #d1d5db, -6px -6px 14px #ffffff;
 text-align: center;
 margin-bottom: 24px;
}

/* Donut grafikas su centruotu tekstu */
#b2seo-kd-chart {
 display: block;
 margin: 0 auto;
 position: relative;
 z-index: 1;
}

.b2s-donut-center {
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 font-size: 20px;
 font-weight: bold;
 color: var(--kd-color, #8c6cff); /* spalva bus dinamiška */
 text-align: center;
 z-index: 2;
}

.b2s-donut-center div:first-child {
 font-size: 22px;
 font-weight: bold;
}

.b2s-donut-text {
 margin-top: 14px;
 font-size: 15px;
 font-weight: 500;
 color: #4b5563;
}

/* Mygtukas Tęsti */
#b2s-continue-to-step3, #b2s-selected-keywords-bottom button {
 float: right;
 background: linear-gradient(135deg, #8c6cff, #a892ff);
 color: white;
 padding: 12px 24px;
 border-radius: 20px;
 font-size: 1.1em;
 box-shadow: 4px 4px 8px #c0c0d1, -4px -4px 8px #ffffff;
 border: none;
 cursor: pointer;
 margin-top: 12px;
}

/* KD spalvų logika (JS užpildys) */
.kd-low    { --kd-color: #34c759; }
.kd-mid    { --kd-color: #a78bfa; }
.kd-high   { --kd-color: #ff9500; }
.kd-very   { --kd-color: #ff3b30; }

/* Bar grafiko vieta */
.b2s-chart-area {
 padding: 18px;
 border-radius: 22px;
 background: #ffffff;
 box-shadow: 6px 6px 14px #d1d5db, -6px -6px 14px #ffffff;
 margin-bottom: 24px;
 text-align: center;
}

#b2s-volume-chart {
 margin-top: 10px;
}

/*Pagrindinė kortelė – 1 sluoksnis */
.b2s-section-card {
 padding: 24px;
 margin: 12px auto; /* sumažintas tarpas tarp kortelių */
 background: #ffffff;
 border-radius: 22px;
 box-shadow: 6px 6px 12px #d4d4dd, -4px -4px 12px #ffffff;
}

/* Subkortelės (pvz. donut, dinamika) – 2-asis sluoksnis */
.b2s-donut-wrapper,
.b2s-chart-area,
.b2s-stats-summary {
 margin: 12px 0;
 padding: 20px;
 border-radius: 18px;
 background: #fff;
 box-shadow: inset 2px 2px 6px #e5e8f0, inset -2px -2px 6px #ffffff;
}

/* === Step 4 Domenų kortelės dizainas === */

.b2s-serp-domains {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.b2s-domain-card {
  background: #f9fafb;
  border-radius: 16px;
  box-shadow: 6px 6px 14px #d4d7dd, -6px -6px 14px #ffffff;
  padding: 18px;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.b2s-domain-card:hover {
  box-shadow: 8px 8px 20px #cfd3d9, -8px -8px 20px #ffffff;
}

.b2s-domain-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.b2s-favicon {
  width: 26px;
  height: 26px;
  margin-right: 12px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #eee;
  background: #fff;
}

.b2s-domain-title {
  font-weight: 600;
  font-size: 15px;
  color: #1f2937;
  margin-bottom: 4px;
}

.b2s-domain-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.b2s-domain-summary {
  font-size: 13px;
  color: #444;
  line-height: 1.4;
  margin-bottom: 6px;
}

.b2s-keyword-list {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.b2s-keyword {
  background: #f3c14c;
  color: #1f2937;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.b2s-domain-text {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5em;
  color: #333;
  max-height: 160px;
  overflow-y: auto;
  white-space: pre-wrap;
  margin-top: 12px;
  scrollbar-width: thin;
}

.b2s-domain-text::-webkit-scrollbar {
  width: 6px;
}
.b2s-domain-text::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 4px;
}

/* Įkrovimo animacija */
.b2s-strategy-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.b2s-quality-badge {
  font-size: 13px;
  font-weight: 500;
  margin-top: 10px;
}

.b2s-quality-low {
  color: #ef4444;
}
.b2s-quality-med {
  color: #f59e0b;
}
.b2s-quality-high {
  color: #10b981;
}

.b2s-quality-badge {
  font-size: 13px;
  font-weight: 500;
  margin-top: 10px;
}

.b2s-quality-low {
  color: #ef4444;
}
.b2s-quality-med {
  color: #f59e0b;
}
.b2s-quality-high {
  color: #10b981;
}

.b2s-toggle-btn {
  margin-top: 10px;
  padding: 6px 12px;
  font-size: 13px;
  border: none;
  background: #e0e7ff;
  color: #1e3a8a;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.1);
  transition: all 0.2s ease-in-out;
}

.b2s-toggle-btn:hover {
  background: #c7d2fe;
}

.b2s-draggable-block {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 12px;
  cursor: grab;
}

.b2s-draggable-block:active {
  cursor: grabbing;
}

.b2s-h2, .b2s-h3 {
  margin-bottom: 6px;
}


.b2s-h1-input-edit {
  width: 100%;
  font-size: 1.1em;
  border: none;
  background: transparent;
  outline: none;
}
.b2s-button-glow {
  background: #8c6cff;
  color: white;
  box-shadow: 0 0 8px #8c6cff;
  transition: box-shadow 0.3s ease;
}
.b2s-button-glow:hover {
  box-shadow: 0 0 16px #8c6cff;
}

.b2s-ai-hint {
  margin-top: 12px;
  background: #f3f0ff;
  border-left: 4px solid #8c6cff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #1f1f1f;
  box-shadow: 0 3px 8px rgba(140, 108, 255, 0.15);
  animation: glowHint 1.5s ease-in-out infinite alternate;
}

@keyframes glowHint {
  0% { box-shadow: 0 0 5px rgba(140, 108, 255, 0.3); }
  100% { box-shadow: 0 0 15px rgba(140, 108, 255, 0.6); }
}

.b2s-seo-metrics {
  font-size: 14px;
  line-height: 1.6;
  color: #1f2937;
  padding: 8px 12px;
  background: #f3f4f6;
  border-radius: 12px;
  margin-top: 12px;
  box-shadow: inset 2px 2px 6px #d1d5db, inset -2px -2px 6px #ffffff;
}

.b2s-serp-card {
  background: #fff;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 14px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}
.b2s-serp-card .favicon {
  width: 16px;
  height: 16px;
  margin-bottom: 4px;
}
.b2s-serp-card .domain {
  font-weight: bold;
  font-size: 14px;
}
.b2s-serp-card .title {
  font-size: 16px;
  margin-top: 6px;
}
.b2s-serp-card .wordcount,
.b2s-serp-card .used {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}


.b2s-domain-card {
  position: relative;
  display: flex;
  padding: 16px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 2px 2px 6px #d1d5db, -2px -2px 6px #ffffff;
  overflow: hidden;
  animation: fadeInUp 0.5s ease forwards;
}
.b2s-domain-bar {
  width: 6px;
  border-radius: 6px;
  margin-right: 16px;
}
.b2s-domain-meta h3 {
  margin: 0 0 6px 0;
  font-size: 17px;
}
.b2s-score-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  margin-top: 4px;
  width: 100%;
}
.b2s-score-fill {
  background: linear-gradient(90deg, #8c6cff, #60a5fa);
  height: 100%;
  border-radius: 4px;
}
.b2s-score-label {
  font-weight: 600;
  color: #4b5563;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === B2S STEP 1 – CSS – Pro Design === */

.b2s-step-card {
  background: #ffffff;
  border-radius: 26px;
  padding: 28px;
  margin: 24px auto;
  box-shadow: 6px 6px 16px #d5d7e0, -6px -6px 16px #ffffff;
  transition: 0.3s ease-in-out;
  max-width: 720px;
}

.b2s-headline {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 22px;
}

/* 🔤 Šaltinio pasirinkimai */
.b2s-source-options {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.b2s-source-button {
  flex: 1;
  padding: 14px;
  border-radius: 18px;
  background: #f9f9fb;
  box-shadow: inset -2px -2px 4px #fff, inset 2px 2px 4px #d1d5db;
  text-align: center;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.2s ease;
}
.b2s-source-button.selected {
  background: #ebe7ff;
  border-left: 5px solid #8c6cff;
}

.b2s-source-button img {
  width: 22px;
  margin-bottom: 6px;
}

/* 🔍 Įvesties ir mygtuko laukelis */
.b2s-input-wrap {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.b2s-input-large {
  flex: 1;
  font-size: 18px;
  padding: 14px 20px;
  border-radius: 16px;
  border: none;
  background: #f9f9fb;
  box-shadow: inset 4px 4px 8px #e0e0e9, inset -4px -4px 8px #ffffff;
  color: #1f2937;
}

.b2s-search-button {
  background: linear-gradient(135deg, #8c6cff, #a892ff);
  border: none;
  border-radius: 50px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 8px #b6b6c7, -2px -2px 8px #ffffff;
  cursor: pointer;
  transition: 0.2s ease;
}

.b2s-search-button img {
  width: 22px;
}

/* 🌐 Kalba / Šalis / Miestas */
.b2s-style-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.b2s-style-block {
  flex: 1 1 100%;
  max-width: 100%;
  background: #f9f9fb;
  padding: 14px;
  border-radius: 18px;
  box-shadow: inset -2px -2px 6px #ffffff, inset 2px 2px 6px #e4e4e4;
}
@media (min-width: 768px) {
  .b2s-style-block {
    flex: 1 1 32%;
    max-width: 32%;
  }
}

.b2s-style-block label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #1f2937;
}

.b2s-input {
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #ccc;
  background: #ffffff;
  font-size: 15px;
}

/* 🚀 Strategijų blokai */
.b2s-strategy-options {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
}

.b2s-strategy-block {
  flex: 1;
  background: #ffffff;
  padding: 14px;
  border-radius: 20px;
  text-align: center;
  font-size: 14px;
  box-shadow: inset -2px -2px 6px #ffffff, inset 2px 2px 6px #e4e4e4;
  cursor: pointer;
  transition: 0.2s ease;
}
.b2s-strategy-block img {
  width: 24px;
  margin-bottom: 6px;#b2s-bottombar
}
.b2s-strategy-block.selected {
  background: #ece8ff;
  border-left: 5px solid #8c6cff;
}
.b2s-strategy-block.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* 💡 AI Patarimas */
.b2s-subcard-ai {
  background: #fff7dc;
  border-left: 6px solid #f3c14c;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 500;
  font-size: 15px;
  box-shadow: inset 2px 2px 6px #e4e4e4;
  color: #1f2937;
}

/* 💬 Raktažodžių idėjos tag'ai */
.b2s-idea-tags {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.b2s-tag {
  background: #f3f4f6;
  padding: 8px 14px;
  border-radius: 22px;
  font-size: 14px;
  color: #4b5563;
  cursor: pointer;
  transition: 0.2s ease;
}
.b2s-tag:hover {
  background: #e0e7ff;
  color: #1f2937;
}

/* 🖼️ Slėptas įkėlimo laukas */
.b2s-upload-hidden {
  display: none;
  margin-bottom: 20px;
}#b2s-bottombar