.seo-analiz-wrap {
  padding: 40px 0 80px;
  background: #f4f7fb;
  min-height: 60vh;
}

.seo-analiz-hero {
  text-align: center;
  margin-bottom: 32px;
}

.seo-analiz-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #0f1c2e;
  margin: 8px 0;
}

.seo-analiz-hero p {
  color: #6b7c93;
  max-width: 680px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.6;
}

.seo-analiz-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 960px) {
  .seo-analiz-layout {
    grid-template-columns: 1fr;
  }
}

.seo-analiz-box {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #dce3ed;
  box-shadow: 0 4px 24px rgba(13, 59, 126, 0.08);
}

.seo-analiz-sec {
  padding: 22px 24px;
  border-bottom: 1px solid #eef2f7;
}

.seo-analiz-sec:last-child {
  border-bottom: none;
}

.seo-analiz-sec h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f1c2e;
  margin: 0 0 6px;
}

.seo-analiz-hint {
  font-size: 0.8rem;
  color: #6b7c93;
  line-height: 1.5;
  margin: 0 0 14px;
}

.seo-analiz-field {
  margin-bottom: 16px;
}

.seo-analiz-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f1c2e;
  margin-bottom: 6px;
}

.seo-analiz-field input[type="text"],
.seo-analiz-field input[type="tel"],
.seo-analiz-page-row input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
}

.seo-analiz-field input:focus,
.seo-analiz-page-row input:focus,
.seo-analiz-kw-input:focus {
  border-color: #0d3b7e;
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 59, 126, 0.12);
}

.seo-analiz-proto {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.seo-analiz-proto label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 2px solid #dce3ed;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
}

.seo-analiz-proto label.sel {
  border-color: #0d3b7e;
  background: #f0f5fc;
  color: #0d3b7e;
}

.seo-analiz-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.seo-analiz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 2px solid #dce3ed;
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  color: #2c3e50;
  font-family: inherit;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.seo-analiz-btn.on,
.seo-analiz-choice label.seo-analiz-btn:has(input:checked) {
  background: #0d3b7e;
  border-color: #0d3b7e;
  color: #fff;
}

.seo-analiz-choice label.seo-analiz-btn {
  margin: 0;
}

.seo-analiz-choice input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Keçid səhifəli — JS olmadan 4 sahəni göstər */
.seo-pages-block {
  display: none;
  margin-top: 18px;
  padding: 16px;
  background: #f0f5fc;
  border: 2px dashed #0d3b7e;
  border-radius: 12px;
  overflow: visible;
}

.seo-page-mode-sec:has(input[name="page_mode"][value="multipage"]:checked) .seo-pages-block {
  display: block !important;
}

.seo-page-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.seo-page-type-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f1c2e;
}

.seo-page-select {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #0d3b7e;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  background: #fff;
  color: #0f1c2e;
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: menulist;
}

.seo-analiz-page-row code {
  background: #eef2f7;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
}

.seo-analiz-hide {
  display: none !important;
}

.seo-analiz-pages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seo-analiz-page-row {
  padding: 16px;
  background: #fff;
  border: 2px solid #dce3ed;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: visible;
  position: relative;
}

.seo-analiz-page-row:last-child {
  margin-bottom: 0;
}

.seo-analiz-page-row .row-top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 8px;
}

.seo-analiz-page-row .row-num {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0d3b7e;
  min-width: 24px;
}

.seo-analiz-page-row select {
  flex: 1;
  min-width: 180px;
  padding: 8px 10px;
  border: 1px solid #dce3ed;
  border-radius: 6px;
  font-size: 0.86rem;
  font-family: inherit;
  background: #fff;
}

.seo-keywords-area {
  width: 100%;
  min-height: 140px;
  padding: 12px 14px;
  border: 2px solid #dce3ed;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.55;
  resize: vertical;
  background: #fff;
  color: #0f1c2e;
}

.seo-keywords-area:focus {
  border-color: #0d3b7e;
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 59, 126, 0.12);
}

.seo-analiz-kw-wrap {
  border: 1px solid #dce3ed;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  min-height: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.seo-analiz-kw-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #e8f0fb;
  color: #0d3b7e;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}

.seo-analiz-kw-tag button {
  border: none;
  background: none;
  color: #c62828;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
}

.seo-analiz-kw-input {
  border: none;
  outline: none;
  flex: 1;
  min-width: 120px;
  font-size: 0.88rem;
  font-family: inherit;
}

.seo-analiz-phone {
  display: flex;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.seo-analiz-phone span {
  padding: 0 12px;
  display: flex;
  align-items: center;
  background: #f0f5fc;
  color: #0d3b7e;
  font-weight: 800;
  border-right: 1px solid #dce3ed;
}

.seo-analiz-phone input {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.seo-analiz-submit {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d3b7e, #092d61);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.seo-analiz-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.seo-analiz-submit:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 59, 126, 0.3);
}

.seo-analiz-side {
  position: sticky;
  top: 90px;
}

@media (max-width: 960px) {
  .seo-analiz-side {
    position: static;
  }
}

.seo-analiz-info {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #dce3ed;
  padding: 20px;
}

.seo-analiz-info h4 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #0f1c2e;
}

.seo-analiz-info ul {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 0.82rem;
  color: #6b7c93;
  line-height: 1.6;
}

.seo-analiz-results {
  margin-top: 28px;
}

.seo-analiz-score-ring {
  text-align: center;
  padding: 28px 20px;
  background: linear-gradient(135deg, #0d3b7e, #092d61);
  color: #fff;
  border-radius: 14px 14px 0 0;
}

.seo-analiz-score-num {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
}

.seo-analiz-score-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 6px;
}

.seo-analiz-check-list {
  padding: 16px 20px 20px;
}

.seo-analiz-check {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid #eef2f7;
  background: #f8fafc;
}

.seo-analiz-check.ok {
  border-color: #c8e6c9;
  background: #f1f8f2;
}

.seo-analiz-check.fail {
  border-color: #ffcdd2;
  background: #fff5f5;
}

.seo-analiz-check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.seo-analiz-check.ok .seo-analiz-check-icon {
  background: #4caf50;
  color: #fff;
}

.seo-analiz-check.fail .seo-analiz-check-icon {
  background: #e53935;
  color: #fff;
}

.seo-analiz-check-body strong {
  display: block;
  font-size: 0.9rem;
  color: #0f1c2e;
}

.seo-analiz-check-body span {
  font-size: 0.8rem;
  color: #6b7c93;
  line-height: 1.45;
}

.seo-analiz-check-body small {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 4px;
  word-break: break-all;
}

.seo-analiz-loading {
  text-align: center;
  padding: 40px 20px;
  color: #6b7c93;
}

.seo-analiz-error {
  padding: 14px 18px;
  background: #fff5f5;
  border: 1px solid #ffcdd2;
  border-radius: 8px;
  color: #c62828;
  margin-top: 16px;
  font-size: 0.9rem;
}

.seo-analiz-wrap,
.seo-analiz-layout,
.seo-analiz-box,
.seo-analiz-sec {
  position: relative;
  z-index: 100;
  pointer-events: auto;
}

body.seo-analiz-page .header-fixed-wrap {
  z-index: 200;
}
