:root {
  --lct-bg: #0a0d10;
  --lct-panel: #11171c;
  --lct-cyan: #00e5ff;
  --lct-pink: #ff3860;
  --lct-green: #39ff14;
  --lct-muted: #94a3b8;
}

html,
body.lasercutie-tool-page {
  margin: 0 !important;
  min-height: 100%;
  background: var(--lct-bg) !important;
  color: #f8fafc;
  overflow-x: clip;
}

body.lasercutie-tool-page {
  padding: 0 !important;
}

.lasercutie-tool-page > header:not(.lct-shell-header),
.lasercutie-tool-page > footer:not(.lasercutie-ai),
.lasercutie-tool-page .site-header,
.lasercutie-tool-page .site-footer {
  display: none !important;
}

.lct-shell-header {
  position: sticky !important;
  z-index: 100 !important;
  top: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(180px, 330px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  height: auto !important;
  min-height: 92px !important;
  margin: 0 !important;
  padding: 12px clamp(16px, 3vw, 48px) !important;
  border-bottom: 1px solid rgba(0, 229, 255, .28);
  background:
    linear-gradient(90deg, rgba(0, 229, 255, .055), transparent 30%, rgba(255, 56, 96, .045)),
    rgba(10, 13, 16, .96);
  box-shadow: 0 12px 38px rgba(0, 0, 0, .38);
  backdrop-filter: blur(14px);
  box-sizing: border-box;
}

.lct-shell-brand {
  display: block;
  min-width: 0;
  text-decoration: none;
}

.lct-shell-logo {
  display: block;
  width: min(100%, 310px);
  height: auto;
  overflow: visible;
}

.lct-shell-logo text {
  fill: #ff77ab;
  stroke: var(--lct-pink);
  stroke-width: 1.4px;
  font: 800 70px/1 Arial, sans-serif;
  letter-spacing: 3px;
  filter: drop-shadow(0 0 8px rgba(255, 61, 134, .45));
}

.lct-shell-logo tspan {
  fill: #f8fafc;
  stroke: #f8fafc;
}

.lct-shell-copy {
  min-width: 0;
}

.lct-shell-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--lct-green);
  font: 800 10px/1.2 "Space Grotesk", Arial, sans-serif;
  letter-spacing: 2px;
}

.lct-shell-copy h1 {
  margin: 0 !important;
  color: #fff !important;
  font: 900 clamp(18px, 2.1vw, 30px)/1.15 "Space Grotesk", Arial, sans-serif !important;
  letter-spacing: .5px;
  overflow-wrap: anywhere;
}

.lct-shell-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.lct-home-button,
.lct-quote-header-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--lct-cyan);
  border-radius: 10px;
  color: var(--lct-cyan) !important;
  background: rgba(0, 229, 255, .06);
  font: 800 12px/1 "Space Grotesk", Arial, sans-serif;
  letter-spacing: 1px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: .2s ease;
}

.lct-quote-header-button {
  border-color: var(--lct-green);
  color: #071108 !important;
  background: linear-gradient(135deg, #00e5ff, #39ff14);
  box-shadow: 0 0 20px rgba(57, 255, 20, .18);
}

.lct-home-button:hover,
.lct-home-button:focus-visible,
.lct-quote-header-button:hover,
.lct-quote-header-button:focus-visible {
  color: #081014 !important;
  background: var(--lct-cyan);
  box-shadow: 0 0 24px rgba(0, 229, 255, .32);
}

.lct-shell-main {
  position: relative;
  width: 100%;
  min-height: calc(100dvh - 92px);
}

.lct-tool-frame {
  display: block;
  width: 100%;
  height: calc(100dvh - 92px);
  min-height: 620px;
  border: 0;
  background: var(--lct-bg);
}

.lct-existing-tool {
  width: 100%;
  min-height: calc(100dvh - 92px);
  margin: 0;
  padding: 0;
  background: var(--lct-bg);
}

.lct-existing-tool > .industrial-hero,
.lct-existing-tool > .cnc-engine-layer,
.lct-existing-tool .cnc-engine-layer {
  display: none !important;
}

.lct-existing-tool .lc-container-wide,
.lct-existing-tool #screw-calculator-pro,
.lct-existing-tool #nut-calculator-pro {
  max-width: none !important;
}

.lasercutie-tool-polotervezo .lct-existing-tool .industrial-wrapper,
.lasercutie-tool-technikai-segedlet .lct-existing-tool .industrial-wrapper,
.lasercutie-tool-polotervezo #poloQuoteBtn {
  display: none !important;
}

.lasercutie-tool-polotervezo .lct-existing-tool .lc-container-wide {
  left: auto !important;
  right: auto !important;
  margin-right: auto !important;
  margin-left: auto !important;
  transform: none !important;
}

.lasercutie-tool-technikai-segedlet .lct-existing-tool {
  padding-right: calc(35mm + 34px);
  padding-left: calc(35mm + 34px);
  padding-bottom: 40px;
  box-sizing: border-box;
}

.lct-cutie-safe-space {
  width: 100%;
  height: clamp(150px, 18vh, 230px);
  pointer-events: none;
}

.lct-existing-quote-button {
  position: fixed;
  z-index: 2147482900;
  right: calc(max(18px, env(safe-area-inset-right)) + 35mm + 12px);
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 25mm !important;
  min-width: 25mm !important;
  max-width: 25mm !important;
  height: 25mm !important;
  min-height: 25mm !important;
  padding: 0 !important;
  border: 2px solid #b8ffac;
  border-radius: 50% !important;
  color: #071008;
  background:
    radial-gradient(circle at 35% 28%, #d6ffce 0 7%, #7bff65 22%, #39ff14 52%, #149800 100%);
  box-shadow:
    inset 0 0 18px rgba(255,255,255,.24),
    0 0 18px rgba(57,255,20,.24),
    0 0 44px rgba(57,255,20,.12);
  cursor: pointer;
  animation: lctQuoteGlow 6.6s ease-in-out infinite;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.lct-quote-icon {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  font-size: 25px;
}

.lct-quote-icon b {
  position: absolute;
  top: -8px;
  right: -10px;
  font: 900 20px/1 Arial, sans-serif;
}

.lct-quote-label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  width: max-content;
  max-width: min(320px, calc(100vw - 280px));
  padding: 10px 13px;
  border: 1px solid var(--lct-green);
  border-radius: 9px;
  background: rgba(9, 14, 16, .96);
  color: var(--lct-green);
  font: 900 11px/1.3 "Space Grotesk", Arial, sans-serif;
  letter-spacing: .7px;
  opacity: 0;
  pointer-events: none;
  transform: translate(10px, -50%);
  transition: opacity .18s ease, transform .18s ease;
}

.lct-existing-quote-button:hover,
.lct-existing-quote-button:focus-visible {
  color: #071008;
  filter: saturate(1.12) brightness(1.08);
  transform: scale(1.04);
}

.lct-existing-quote-button:hover .lct-quote-label,
.lct-existing-quote-button:focus-visible .lct-quote-label {
  opacity: 1;
  transform: translate(0, -50%);
}

.lct-existing-quote-button:disabled {
  opacity: .55;
  cursor: wait;
}

@keyframes lctQuoteGlow {
  0%, 100% {
    box-shadow: inset 0 0 18px rgba(255,255,255,.24), 0 0 16px rgba(57,255,20,.21), 0 0 34px rgba(57,255,20,.09);
  }
  50% {
    box-shadow: inset 0 0 22px rgba(255,255,255,.29), 0 0 28px rgba(57,255,20,.36), 0 0 62px rgba(57,255,20,.17);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lct-existing-quote-button {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .lasercutie-tool-technikai-segedlet .lct-existing-tool {
    padding-right: calc(30mm + 28px);
    padding-left: calc(30mm + 28px);
  }
  .lct-existing-quote-button {
    right: calc(max(18px, env(safe-area-inset-right)) + 30mm + 10px);
    width: 20mm !important;
    min-width: 20mm !important;
    max-width: 20mm !important;
    height: 20mm !important;
    min-height: 20mm !important;
  }
}

@media (max-width: 767px) {
  .lasercutie-tool-technikai-segedlet .lct-existing-tool {
    padding-right: 0;
    padding-left: 0;
    padding-bottom: calc(20mm + 36px);
  }
  .lct-shell-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    min-height: 84px !important;
    padding: 10px 12px !important;
  }
  .lct-shell-brand {
    grid-column: 1;
  }
  .lct-shell-logo {
    width: min(146px, 40vw);
  }
  .lct-shell-copy {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .lct-shell-kicker {
    display: none;
  }
  .lct-shell-copy h1 {
    font-size: 15px !important;
  }
  .lct-shell-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 6px;
  }
  .lct-home-button,
  .lct-quote-header-button {
    min-height: 38px;
    padding: 0 8px;
    font-size: 9px;
    letter-spacing: .25px;
  }
  .lct-tool-frame {
    height: calc(100dvh - 84px);
    min-height: 520px;
  }
  .lct-existing-quote-button {
    right: calc(max(12px, env(safe-area-inset-right)) + 20mm + 8px);
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 15mm !important;
    min-width: 15mm !important;
    max-width: 15mm !important;
    height: 15mm !important;
    min-height: 15mm !important;
  }
  .lct-quote-icon {
    font-size: 19px;
  }
  .lct-quote-icon b {
    top: -6px;
    right: -8px;
    font-size: 16px;
  }
  .lct-quote-label {
    display: none;
  }
}
