.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;
  gap: 24px;
  align-items: start;
}

.seo-analiz-layout.has-results {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.seo-analiz-form-col {
  min-width: 0;
}

.seo-analiz-results-col {
  min-width: 0;
}

.seo-analiz-layout.has-results .seo-analiz-results-col {
  position: static;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.seo-analiz-layout.has-results .seo-analiz-results-col .seo-analiz-results-card {
  height: auto;
  overflow: visible;
}

.seo-analiz-layout.has-results .seo-analiz-results-card .seo-analiz-groups {
  overflow: visible;
}

@media (max-width: 1100px) {
  .seo-analiz-layout.has-results {
    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-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 {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.seo-analiz-choice input[type="radio"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

/* 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: 0;
}

.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-score-summary {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 600;
}

.seo-analiz-pillar-scores {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.seo-analiz-pillar-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
}

.seo-analiz-pillar-icon {
  display: block;
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 4px;
}

.seo-analiz-pillar-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.88;
  margin-bottom: 4px;
}

.seo-analiz-pillar-num {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
}

.seo-analiz-pillar-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  opacity: 0.78;
}

@media (max-width: 640px) {
  .seo-analiz-pillar-scores {
    grid-template-columns: 1fr;
  }
}

.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-pillar-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: middle;
  background: #e8eef7;
  color: #0d3b7e;
}

.seo-analiz-check.is-aio .seo-analiz-pillar-tag {
  background: #e3f2fd;
  color: #1565c0;
}

.seo-analiz-check.is-geo .seo-analiz-pillar-tag {
  background: #f3e5f5;
  color: #7b1fa2;
}

.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-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;
}

#seoResultsAnchor,
section#skor {
  scroll-margin-top: 100px;
}

section#skor {
  display: block;
}

.seo-analiz-results-card {
  overflow: visible;
}

.seo-analiz-groups {
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.seo-analiz-page-group {
  border: 1px solid #dce3ed;
  border-radius: 12px;
  overflow: visible;
  background: #fff;
  flex-shrink: 0;
}

.seo-analiz-page-group.is-home {
  border-left: 5px solid #0d3b7e;
  box-shadow: 0 4px 18px rgba(13, 59, 126, 0.08);
}

.seo-analiz-page-group.is-sub {
  border-left: 5px solid #2e7d32;
  box-shadow: 0 4px 18px rgba(46, 125, 50, 0.08);
}

.seo-analiz-page-group.is-sub.sub-2 {
  border-left-color: #6a1b9a;
  box-shadow: 0 4px 18px rgba(106, 27, 154, 0.08);
}

.seo-analiz-page-group.is-sub.sub-3,
.seo-analiz-page-group.is-sub.sub-4 {
  border-left-color: #e65100;
  box-shadow: 0 4px 18px rgba(230, 81, 0, 0.08);
}

.seo-analiz-page-group.is-site {
  border-left: 5px solid #546e7a;
  box-shadow: 0 4px 18px rgba(84, 110, 122, 0.08);
}

.seo-analiz-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #f4f7fb;
  border-bottom: 1px solid #e3eaf3;
}

.seo-analiz-page-group.is-home .seo-analiz-page-head {
  background: linear-gradient(90deg, #e8f0fb, #f4f7fb);
}

.seo-analiz-page-group.is-sub .seo-analiz-page-head {
  background: linear-gradient(90deg, #edf7ee, #f4f7fb);
}

.seo-analiz-page-group.is-site .seo-analiz-page-head {
  background: linear-gradient(90deg, #eceff1, #f4f7fb);
}

.seo-analiz-page-head h4 {
  margin: 4px 0 0;
  font-size: 1rem;
  color: #0f1c2e;
}

.seo-analiz-page-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: #0d3b7e;
}

.seo-analiz-page-group.is-sub .seo-analiz-page-badge {
  background: #2e7d32;
}

.seo-analiz-page-group.is-sub.sub-2 .seo-analiz-page-badge {
  background: #6a1b9a;
}

.seo-analiz-page-group.is-sub.sub-3 .seo-analiz-page-badge,
.seo-analiz-page-group.is-sub.sub-4 .seo-analiz-page-badge {
  background: #e65100;
}

.seo-analiz-page-group.is-site .seo-analiz-page-badge {
  background: #546e7a;
}

.seo-analiz-page-url {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #dce3ed;
  font-size: 0.76rem;
  color: #0d3b7e;
  word-break: break-all;
}

.seo-analiz-page-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #6b7c93;
}

.seo-analiz-page-score {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dce3ed;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0d3b7e;
  white-space: nowrap;
}

.seo-analiz-page-group .seo-analiz-check-list {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-analiz-page-group .seo-analiz-check-list .seo-analiz-check {
  margin-bottom: 0;
}

.seo-analiz-toast {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  max-width: min(92vw, 520px);
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 10px 40px rgba(15, 28, 46, 0.22);
  animation: seoToastIn 0.35s ease;
}

.seo-analiz-toast.is-success {
  background: linear-gradient(135deg, #0d3b7e, #1565c0);
  color: #fff;
}

.seo-analiz-toast.is-error {
  background: linear-gradient(135deg, #c62828, #e53935);
  color: #fff;
}

@keyframes seoToastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

#seoDoneModal {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#seoDoneModal.is-open {
  display: flex !important;
}

.seo-analiz-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 50, 80, 0.45);
}

.seo-analiz-modal-box {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  background: #fff;
  border-radius: 6px;
  padding: 36px 32px 28px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  animation: seoModalIn 0.3s ease;
}

.seo-analiz-modal-icon {
  margin: 0 auto 18px;
}

.seo-analiz-modal-icon-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid #b8dfc0;
  background: #fff;
  color: #4caf50;
  font-size: 2.4rem;
}

.seo-analiz-modal-box h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #4a4a4a;
}

.seo-analiz-modal-text {
  margin: 0 0 24px;
  font-size: 0.95rem;
  color: #888;
  line-height: 1.5;
}

.seo-analiz-modal-btn {
  display: inline-block;
  min-width: 130px;
  padding: 10px 28px;
  border: none;
  border-radius: 4px;
  background: #5b9bd5;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  box-sizing: border-box;
  letter-spacing: 0.02em;
}

.seo-analiz-modal-btn:hover {
  background: #4a8bc4;
  color: #fff;
}

body.seo-modal-open {
  overflow: hidden;
}

@keyframes seoModalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.seo-analiz-cta {
  padding: 18px 20px;
  background: #f8fafc;
  border-top: 1px solid #e3eaf3;
  border-bottom: 1px solid #e3eaf3;
}

.seo-analiz-cta-top {
  border-top: none;
}

.seo-analiz-cta-bottom {
  border-bottom: none;
  border-radius: 0 0 14px 14px;
}

.seo-analiz-cta-lead {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.6;
}

.seo-analiz-cta-ask {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: #0f1c2e;
}

.seo-analiz-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.seo-analiz-cta-btn:hover {
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.seo-analiz-optional {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7c93;
}

.seo-analiz-check-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f1c2e;
  cursor: pointer;
  user-select: none;
}

.seo-analiz-check-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #0d3b7e;
}

.seo-competitor-block {
  display: none;
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  border: 2px dashed #0d3b7e;
  background: #f0f5fc;
  overflow: visible;
}

.seo-competitor-sec:has(input[name="competitor_compare"][value="yes"]:checked) .seo-competitor-block {
  display: block !important;
}

.seo-analiz-history-panel,
.seo-analiz-compare-panel {
  margin: 14px 16px 0;
  padding: 14px 16px;
  border: 1px solid #dce3ed;
  border-radius: 12px;
  background: #f8fafc;
}

.seo-analiz-history-panel h3,
.seo-analiz-compare-panel h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #0f1c2e;
}

.seo-analiz-history-meta {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: #4a5d73;
}

.seo-analiz-history-delta.is-up,
.seo-analiz-compare-diff.is-up {
  color: #2e7d32;
  font-weight: 800;
}

.seo-analiz-history-delta.is-down,
.seo-analiz-compare-diff.is-down {
  color: #c62828;
  font-weight: 800;
}

.seo-analiz-history-delta.is-flat,
.seo-analiz-compare-diff.is-flat {
  color: #6b7c93;
  font-weight: 800;
}

.seo-analiz-history-lists,
.seo-analiz-compare-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.seo-analiz-history-list ul,
.seo-analiz-compare-list ul {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 0.8rem;
  color: #4a5d73;
}

.seo-analiz-history-list.is-up strong {
  color: #2e7d32;
}

.seo-analiz-history-list.is-down strong,
.seo-analiz-compare-list.is-loss strong {
  color: #c62828;
}

.seo-analiz-compare-list.is-win strong {
  color: #2e7d32;
}

.seo-analiz-compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.seo-analiz-compare-card {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #dce3ed;
  background: #fff;
}

.seo-analiz-compare-card.is-primary {
  border-left: 4px solid #0d3b7e;
}

.seo-analiz-compare-card.is-competitor {
  border-left: 4px solid #e65100;
}

.seo-analiz-compare-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #6b7c93;
  margin-bottom: 4px;
}

.seo-analiz-compare-score {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0d3b7e;
  margin: 6px 0;
}

.seo-analiz-compare-diff {
  font-size: 1.2rem;
  text-align: center;
  padding: 8px;
}

.seo-analiz-compare-pillars {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #dce3ed;
  display: grid;
  gap: 8px;
}

.seo-analiz-compare-pillar-row {
  display: grid;
  grid-template-columns: 52px 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e8edf3;
}

.seo-analiz-compare-pillar-name {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #6b7c93;
}

.seo-analiz-compare-pillar-val {
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.seo-analiz-compare-pillar-val.is-primary {
  color: #0d3b7e;
}

.seo-analiz-compare-pillar-val.is-competitor {
  color: #e65100;
}

.seo-analiz-compare-pillar-diff {
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  min-width: 52px;
}

.seo-analiz-compare-pillar-meta {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  color: #6b7c93;
  text-align: center;
}

.seo-analiz-compare-error {
  margin: 14px 16px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff5f5;
  border: 1px solid #ffcdd2;
  color: #c62828;
  font-size: 0.84rem;
}

@media (max-width: 640px) {
  .seo-analiz-page-head {
    flex-direction: column;
  }

  .seo-analiz-page-score {
    align-self: flex-start;
  }

  .seo-analiz-toast {
    top: 72px;
    font-size: 0.84rem;
    padding: 12px 16px;
  }

  .seo-analiz-modal-box {
    padding: 22px 18px 18px;
  }

  .seo-analiz-compare-grid {
    grid-template-columns: 1fr;
  }

  .seo-analiz-compare-diff {
    order: -1;
  }

  .seo-analiz-history-lists,
  .seo-analiz-compare-lists {
    grid-template-columns: 1fr;
  }

  .seo-analiz-compare-pillar-row {
    grid-template-columns: 1fr 1fr;
  }

  .seo-analiz-compare-pillar-name {
    grid-column: 1 / -1;
  }

  .seo-analiz-compare-pillar-diff {
    grid-column: 1 / -1;
  }
}

.seo-analiz-history-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: #4a5d73;
}

.seo-analiz-history-pillar em {
  font-style: normal;
  font-weight: 800;
}

.seo-analiz-history-pillar em.is-up {
  color: #2e7d32;
}

.seo-analiz-history-pillar em.is-down {
  color: #c62828;
}

.seo-analiz-history-pillar em.is-flat {
  color: #6b7c93;
}

/* Analiz yükləmə overlay (inc/yukleme.html) */
.seo-analiz-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2147483647;
  transition: opacity 0.5s ease;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.seo-analiz-loader.seo-analiz-hide {
  display: none !important;
}

.seo-analiz-loader-window {
  background: #ffffff;
  padding: 36px 48px 40px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(92vw, 380px);
}

.seo-analiz-loader-window h2 {
  margin: 0 0 8px;
  color: #0f1c2e;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.seo-analiz-loader-sub {
  margin: 0 0 24px;
  color: #6b7c93;
  font-size: 0.88rem;
  line-height: 1.5;
}

.seo-analiz-loader-ring {
  position: relative;
  width: 160px;
  height: 160px;
}

.seo-analiz-loader-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.seo-analiz-loader-bg {
  fill: none;
  stroke: #eef2f7;
  stroke-width: 8;
}

.seo-analiz-loader-bar {
  fill: none;
  stroke: #0d3b7e;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 282.743;
  stroke-dashoffset: 282.743;
  transition: stroke-dashoffset 0.05s linear;
}

.seo-analiz-loader-pct {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: 800;
  color: #0d3b7e;
  line-height: 1;
}

body.seo-loader-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .seo-analiz-loader-window {
    padding: 28px 24px 32px;
  }

  .seo-analiz-loader-ring {
    width: 140px;
    height: 140px;
  }

  .seo-analiz-loader-pct {
    font-size: 1.65rem;
  }
}
