/* JoomlaUpgrade.eu — Premium Home Add-on */

.ju4-section {
  padding: 72px 0;
}

.ju4-stats-section {
  color: #fff;
  background: linear-gradient(135deg, #0d1420, #18243a);
}

.ju4-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.ju4-stats-grid article {
  padding: 22px 28px;
  border-right: 1px solid rgba(255,255,255,.10);
  text-align: center;
}

.ju4-stats-grid article:last-child {
  border-right: 0;
}

.ju4-stats-grid strong,
.ju4-stats-grid article > span {
  display: inline;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  font-weight: 900;
}

.ju4-stats-grid strong {
  color: #fff;
}

.ju4-stats-grid article > span {
  color: var(--ju2-orange);
}

.ju4-stats-grid p {
  margin: 9px 0 0;
  color: #aeb9c8;
  font-size: 12px;
}

.ju4-compare {
  position: relative;
  height: 520px;
  overflow: hidden;
  border: 1px solid var(--ju2-line);
  border-radius: 24px;
  background: #eef1f5;
  box-shadow: var(--ju2-shadow);
  user-select: none;
}

.ju4-compare-layer {
  position: absolute;
  inset: 0;
}

.ju4-compare-before {
  width: 50%;
  overflow: hidden;
  border-right: 2px solid #fff;
}

.ju4-browser {
  position: absolute;
  top: 44px;
  left: 50%;
  width: min(900px, calc(100% - 80px));
  height: 420px;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(17,23,34,.18);
}

.ju4-compare-before .ju4-browser {
  width: min(900px, calc(200% - 80px));
  left: calc(100% + 0px);
}

.ju4-browser-top {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 44px;
  padding: 0 15px;
  background: #eef1f5;
}

.ju4-browser-top i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff6b22;
}

.ju4-browser-top i:nth-child(2) { background: #e6b743; }
.ju4-browser-top i:nth-child(3) { background: #35b96f; }

.ju4-browser-top span {
  margin-left: 8px;
  color: #657286;
  font-size: 11px;
}

.ju4-modern-site {
  height: calc(100% - 44px);
  padding: 22px;
  background: linear-gradient(145deg, #f9fbfd, #fff);
}

.ju4-modern-nav {
  width: 100%;
  height: 28px;
  border-radius: 8px;
  background: #18243a;
}

.ju4-modern-hero {
  margin-top: 17px;
  padding: 32px;
  border-radius: 15px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 15%, rgba(255,107,34,.35), transparent 30%),
    linear-gradient(135deg, #111722, #26344d);
}

.ju4-modern-hero span {
  color: #ffac80;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.ju4-modern-hero h3 {
  margin: 9px 0 7px;
  color: #fff;
  font-size: 27px;
}

.ju4-modern-hero p {
  margin: 0;
  color: #c7d0dc;
  font-size: 12px;
}

.ju4-modern-hero b {
  display: block;
  width: 110px;
  height: 28px;
  margin-top: 17px;
  border-radius: 8px;
  background: var(--ju2-orange);
}

.ju4-modern-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-top: 15px;
}

.ju4-modern-cards i {
  height: 86px;
  border: 1px solid #e4e8ee;
  border-radius: 12px;
  background: #fff;
}

.ju4-legacy-site {
  height: calc(100% - 44px);
  padding: 18px;
  background: #dedede;
}

.ju4-legacy-nav {
  height: 38px;
  border: 3px ridge #aaa;
  background: linear-gradient(#8f8f8f, #c5c5c5);
}

.ju4-legacy-content {
  display: grid;
  grid-template-columns: 180px 1fr;
  grid-template-rows: repeat(2, 105px);
  gap: 8px;
  margin-top: 12px;
}

.ju4-legacy-content div {
  border: 2px ridge #aaa;
  background: #eee;
}

.ju4-legacy-content div:first-child {
  grid-row: 1 / span 2;
}

.ju4-legacy-error {
  margin-top: 12px;
  padding: 11px;
  border: 2px solid #b34444;
  color: #8c2828;
  background: #ffdede;
  font: 12px ui-monospace, monospace;
}

.ju4-compare input {
  position: absolute;
  z-index: 8;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}

.ju4-compare-handle {
  position: absolute;
  z-index: 7;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,.2);
}

.ju4-compare-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  place-items: center;
  border: 4px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--ju2-orange);
  box-shadow: 0 12px 30px rgba(255,107,34,.34);
  font-size: 20px;
}

.ju4-compare-label {
  position: absolute;
  z-index: 6;
  top: 15px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.ju4-compare-label-before {
  left: 15px;
  background: var(--ju2-red);
}

.ju4-compare-label-after {
  right: 15px;
  background: var(--ju2-green);
}

.ju4-emergency-section {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  color: #dce3ec;
  background:
    radial-gradient(circle at 82% 18%, rgba(223,75,89,.20), transparent 30%),
    linear-gradient(135deg, #0d1420, #1b273a);
}

.ju4-emergency-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 70px;
  align-items: center;
}

.ju4-emergency-grid h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.ju4-emergency-grid p {
  font-size: 17px;
}

.ju4-emergency-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
  margin: 27px 0 30px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.ju4-emergency-clock {
  text-align: center;
}

.ju4-clock-ring {
  display: grid;
  width: 285px;
  height: 285px;
  margin: 0 auto;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,107,34,.17), transparent 58%),
    rgba(255,255,255,.04);
  box-shadow:
    0 0 0 25px rgba(255,255,255,.025),
    0 0 0 50px rgba(255,255,255,.015);
}

.ju4-clock-ring span {
  color: #fff;
  font-size: 72px;
  font-weight: 950;
  line-height: 1;
}

.ju4-clock-ring small {
  max-width: 160px;
  margin-top: 8px;
  color: #ffb28c;
  font-weight: 800;
}

.ju4-clock-note {
  max-width: 370px;
  margin: 55px auto 0;
  color: #9eabba;
  font-size: 11px;
}

.ju4-comparison-table {
  overflow: hidden;
  border: 1px solid var(--ju2-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--ju2-shadow-soft);
}

.ju4-comparison-table > div {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 15px;
  align-items: center;
  padding: 17px 21px;
  border-bottom: 1px solid var(--ju2-line);
}

.ju4-comparison-table > div:last-child {
  border-bottom: 0;
}

.ju4-comparison-head {
  color: #fff;
  background: var(--ju2-ink);
}

.ju4-comparison-head strong {
  color: #fff;
}

.ju4-comparison-table b {
  font-size: 12px;
}

.ju4-yes {
  color: var(--ju2-green);
}

.ju4-no {
  color: var(--ju2-muted);
  font-weight: 600;
}

.ju4-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 21px;
}

.ju4-testimonials-grid article {
  padding: 28px;
  border: 1px solid var(--ju2-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(17,23,34,.05);
}

.ju4-stars {
  color: #f4aa31;
  letter-spacing: .12em;
}

.ju4-testimonials-grid blockquote {
  margin: 20px 0 24px;
  padding: 0;
  border: 0;
  color: var(--ju2-ink);
  background: transparent;
  box-shadow: none;
  font-size: 17px;
  font-style: normal;
}

.ju4-testimonials-grid strong,
.ju4-testimonials-grid span {
  display: block;
}

.ju4-testimonials-grid span {
  color: var(--ju2-muted);
  font-size: 11px;
}

.ju4-security-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--ju2-line);
  border-radius: 18px;
  background: var(--ju2-line);
}

.ju4-security-timeline article {
  min-height: 230px;
  padding: 25px;
  background: rgba(255,255,255,.94);
}

.ju4-security-timeline span {
  color: var(--ju2-orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.ju4-security-timeline h3 {
  margin: 18px 0 8px;
  color: var(--ju2-ink);
  font-size: 20px;
}

.ju4-security-timeline p {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 1020px) {
  .ju4-stats-grid,
  .ju4-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ju4-emergency-grid {
    grid-template-columns: 1fr;
  }

  .ju4-security-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .ju4-browser {
    width: calc(100% - 40px);
  }

  .ju4-compare-before .ju4-browser {
    width: calc(200% - 40px);
  }
}

@media (max-width: 700px) {
  .ju4-stats-grid,
  .ju4-testimonials-grid,
  .ju4-security-timeline,
  .ju4-emergency-points {
    grid-template-columns: 1fr;
  }

  .ju4-stats-grid article {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }

  .ju4-stats-grid article:last-child {
    border-bottom: 0;
  }

  .ju4-compare {
    height: 430px;
  }

  .ju4-browser {
    top: 54px;
    width: calc(100% - 24px);
    height: 335px;
  }

  .ju4-compare-before .ju4-browser {
    width: calc(200% - 24px);
  }

  .ju4-modern-hero {
    padding: 20px;
  }

  .ju4-modern-hero h3 {
    font-size: 20px;
  }

  .ju4-modern-cards {
    display: none;
  }

  .ju4-legacy-content {
    grid-template-columns: 90px 1fr;
  }

  .ju4-comparison-table > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .ju4-comparison-head {
    display: none !important;
  }

  .ju4-comparison-table > div span {
    color: var(--ju2-ink);
    font-weight: 800;
  }

  .ju4-clock-ring {
    width: 230px;
    height: 230px;
  }

  .ju4-clock-ring span {
    font-size: 58px;
  }
}
