body.lm-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(rgb(255 255 255 / 22%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 22%) 1px, transparent 1px),
    var(--lm-canvas) !important;
  background-size: 32px 32px !important;
}

.lm-site-header {
  position: static;
  z-index: auto;
  border-bottom: 1px solid var(--lm-border);
  background: var(--lm-canvas);
  backdrop-filter: none;
}

.lm-navbar {
  width: min(1480px, calc(100% - 32px));
  min-height: 104px;
  margin: 0 auto;
  padding: 16px 0;
  background: transparent !important;
  box-shadow: none !important;
}

.lm-navbar .container-fluid {
  padding: 0;
}

.lm-navbar .navbar-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: clamp(20px, 3vw, 48px);
  color: var(--lm-text) !important;
  line-height: 1;
  text-decoration: none;
}

.lm-navbar .lm-wordmark {
  font-size: clamp(1.5rem, 5.4vw, 2.45rem);
  line-height: 0.94;
  white-space: nowrap;
}

.lm-navbar .navbar-brand-subtitle {
  margin-top: 8px;
  color: var(--lm-brand) !important;
  font-family: "Conthrax", Impact, sans-serif;
  font-size: clamp(.4rem, 2.3vw, .82rem) !important;
  line-height: 1.05;
  white-space: nowrap;
}

.lm-navbar .navbar-nav {
  align-items: center;
  gap: 4px;
}

.lm-navbar .nav-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px !important;
  border-radius: var(--lm-radius);
  color: var(--lm-text-muted) !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  text-decoration: none;
}

.lm-navbar .nav-link > i {
  font-size: 1.2em;
}

.lm-navbar .nav-link:hover,
.lm-navbar .nav-link[aria-current="page"],
.lm-navbar .nav-link.show {
  background: var(--lm-surface);
  color: var(--lm-text) !important;
}

.lm-navbar .lm-nav-primary {
  background: var(--lm-brand);
  color: #fff !important;
}

.lm-navbar .lm-nav-primary:hover {
  background: var(--lm-brand-hover);
  color: #fff !important;
}

.lm-navbar .navbar-toggler {
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius);
  background: var(--lm-surface);
  box-shadow: none;
}

.lm-navbar .dropdown-menu {
  padding: 10px;
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius);
  background: var(--lm-surface);
  box-shadow: var(--lm-shadow-overlay);
}

.lm-navbar .dropdown-item {
  padding: 11px 13px;
  border-radius: 6px;
  color: var(--lm-text);
  font-size: 1rem;
  font-weight: 650;
}

.lm-navbar .dropdown-item:hover,
.lm-navbar .dropdown-item:focus {
  background: var(--lm-surface-strong);
  color: var(--lm-brand);
}

.lm-navbar .language-select {
  display: inline-flex;
  align-items: center;
}

.lm-navbar .navbar-language-select {
  width: auto;
  min-width: 5.8rem;
  max-width: 100%;
  min-height: 2.55rem;
  field-sizing: content;
  border: 1px solid var(--lm-border) !important;
  border-radius: var(--lm-radius);
  padding: 0.55rem 2rem 0.55rem 0.72rem;
  background-color: var(--lm-surface) !important;
  color: var(--lm-text) !important;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
}

.lm-navbar .navbar-language-select:focus {
  border-color: var(--lm-border) !important;
  box-shadow: none !important;
}

.lm-navbar .navbar-language-select:focus-visible {
  outline: 3px solid var(--lm-focus);
  outline-offset: 4px;
}

body.lm-app > .lm-page-shell {
  width: min(1480px, calc(100% - 32px));
  max-width: none !important;
  flex: 1 0 auto;
  margin: 28px auto 52px !important;
  padding: clamp(18px, 2.5vw, 38px) !important;
  border: 1px solid var(--lm-border) !important;
  border-radius: var(--lm-radius) !important;
  background: rgb(255 255 255 / 96%) !important;
  box-shadow: none !important;
}

body.lm-app > .lm-page-shell .main > h1:first-child,
body.lm-app > .lm-page-shell .main > h2:first-child,
body.lm-app > .lm-page-shell .main > h3:first-child {
  margin-bottom: 24px;
}

.lm-site-footer {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 3rem 0 !important;
  border-top: 0;
  background: var(--lm-charcoal) !important;
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 1rem;
  line-height: 1.55;
  text-align: left;
  box-shadow: none !important;
}

.lm-footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.lm-footer-brand {
  display: inline-flex;
  width: 100%;
  max-width: min(100%, 44rem);
  color: #fff !important;
  text-decoration: none;
}

.lm-footer-brand-copy {
  display: grid;
  gap: 0.28rem;
  width: 100%;
  min-width: 0;
  line-height: 1;
}

.lm-footer-brand-copy strong,
.lm-footer-brand-copy small {
  font-family: "Conthrax", Impact, sans-serif !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.lm-footer-brand-copy strong {
  font-size: clamp(1.5rem, 5.4vw, 2.45rem);
  font-weight: 700;
  line-height: 0.94;
  white-space: nowrap;
}

.lm-footer-brand-copy small {
  display: block;
  max-width: 44rem;
  color: rgb(255 255 255 / 72%);
  font-size: clamp(0.4rem, 2.3vw, 0.82rem);
  font-weight: 400;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal;
}

.lm-site-footer a {
  color: rgb(255 255 255 / 75%) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 1rem;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
  text-decoration: none;
}

.lm-site-footer :focus-visible {
  outline: 3px solid var(--lm-focus);
  outline-offset: 4px;
}

.lm-site-footer a:hover {
  color: #fff !important;
}

.lm-footer-social {
  justify-self: start;
}

.lm-footer-social h2 {
  margin-bottom: 0.75rem;
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 1rem;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.55;
}

.lm-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.lm-social-link {
  width: 2.65rem;
  height: 2.65rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--lm-radius);
  background: rgb(255 255 255 / 7%);
}

.lm-social-link:hover {
  background: var(--lm-brand);
}

.lm-social-link svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  fill: currentColor;
}

.lm-footer-separator {
  width: 100%;
  margin: 0.25rem 0 0;
  border: 0;
  border-top: 1px solid rgb(255 255 255 / 18%);
  opacity: 1;
}

.lm-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  align-items: center;
}

.lm-footer-legal a {
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  font-weight: 800;
}

@media (min-width: 760px) {
  .lm-footer-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .lm-footer-social {
    justify-self: end;
  }

  .lm-footer-separator,
  .lm-footer-legal {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .lm-navbar .lm-wordmark {
    font-size: clamp(1.9rem, 2.8vw, 3.15rem);
  }

  .lm-navbar .navbar-brand-subtitle {
    font-size: clamp(.9rem, 1.12vw, 1.28rem) !important;
  }

  .lm-footer-brand-copy strong {
    font-size: clamp(1.9rem, 2.8vw, 3.15rem);
  }

  .lm-footer-brand-copy small {
    font-size: clamp(0.9rem, 1.12vw, 1.28rem);
  }
}

/* Upload: keep the task first and make the drawing drop zone unmistakable. */
body.lm-app .drop_zone {
  max-width: 400px !important;
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 2px dashed var(--lm-brand) !important;
  border-radius: var(--lm-radius) !important;
  background: linear-gradient(135deg, rgb(15 23 42 / 4%), rgb(13 110 253 / 8%)) !important;
  color: var(--lm-text) !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
  box-shadow: none !important;
}

body.lm-app .drop_zone:hover,
body.lm-app .drop_zone_over {
  border-color: var(--lm-accent) !important;
  background: linear-gradient(135deg, rgb(15 23 42 / 6%), rgb(13 110 253 / 14%)) !important;
  color: var(--lm-brand-hover) !important;
  transform: none !important;
}

body.lm-app .upload-btn-wrapper {
  width: 100% !important;
  max-width: 400px !important;
  border: 1px solid var(--lm-border) !important;
  background: var(--lm-surface) !important;
  box-shadow: none !important;
}

body.lm-app .standard-parts-modal-header {
  border-color: var(--lm-border) !important;
  background: var(--lm-surface-strong) !important;
}

body.lm-app .history-row,
body.lm-app .history-field,
body.lm-app .history-detail {
  border-color: var(--lm-border) !important;
  background: var(--lm-surface) !important;
}

body.lm-app .history-action-btn,
body.lm-app .history-open-link,
body.lm-app .history-edit-btn {
  border-color: var(--lm-charcoal) !important;
  background: var(--lm-charcoal) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Calculation: stable preview/configuration composition and a persistent price hierarchy. */
body.lm-app .calculation-container .part-card {
  margin-bottom: 24px;
}

body.lm-app .calculation-container .part-card h5 {
  color: var(--lm-brand) !important;
}

body.lm-app .calculation-container > form > .d-flex.justify-content-end.mb-3 > .btn-outline-primary {
  margin-top: 10px;
  padding: 8px 16px;
  border: none !important;
  border-radius: 5px;
  background: #0d6efd !important;
  color: #fff !important;
  font-weight: 500;
  transition: all 300ms ease;
}

body.lm-app .calculation-container > form > .d-flex.justify-content-end.mb-3 > .btn-outline-primary:hover {
  background: #0a58ca !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgb(0 0 0 / 10%);
}

body.lm-app .calculation-container .part-card .card-header .badge.bg-secondary {
  padding: .35em .65em;
  border: 0 !important;
  border-radius: .375rem;
  background: #6c757d !important;
  color: #fff !important;
  font-size: .75em;
  font-weight: 700;
  line-height: 1;
}

body.lm-app .calculation-container .part-card > .card > .card-body > .row {
  align-items: stretch;
}

body.lm-app .calculation-container .part-card .dxf-image-link {
  min-height: 230px;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius);
  background: #fff;
}

body.lm-app .calculation-container .spec-item {
  height: 100%;
  padding: 11px 12px;
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius);
  background: var(--lm-surface-strong);
}

body.lm-app .calculation-container .total-price,
body.lm-app .grand-total-section {
  border: 1px solid rgb(13 110 253 / 35%) !important;
  border-radius: var(--lm-radius) !important;
  background: #eef4ff !important;
  color: var(--lm-text) !important;
  box-shadow: none !important;
}

body.lm-app .grand-total-section {
  position: static;
  margin-top: 24px;
  padding: 18px;
  box-shadow: 0 10px 32px rgb(23 20 18 / 13%) !important;
}

/* Cart and checkout use one warm, structured purchasing language. */
body.lm-app .cart-items,
body.lm-app .items {
  gap: 16px !important;
}

body.lm-app .cart-item,
body.lm-app .item {
  border: 1px solid var(--lm-border) !important;
  background: var(--lm-surface) !important;
}

body.lm-app .cart-item-image,
body.lm-app .img-wrapper {
  background: var(--lm-surface-strong) !important;
}

body.lm-app .checkout-container,
body.lm-app .check {
  border-top: 3px solid var(--lm-brand) !important;
}

body.lm-app .checkout-detail-table,
body.lm-app .cart-detail-table {
  border-radius: var(--lm-radius);
  overflow: auto;
}

body.lm-app table.user_info {
  width: min(100%, 760px) !important;
  margin-bottom: 28px;
}

body.lm-app table.user_info th,
body.lm-app table.user_info td {
  padding: 10px 12px !important;
  border-bottom: 1px solid var(--lm-border) !important;
  background: transparent !important;
}

body.lm-app table.user_info th {
  width: 34%;
  color: var(--lm-text-muted) !important;
  text-align: left !important;
}

body.lm-app .gr_tot_p {
  width: min(100%, 560px);
  margin: 0 0 8px auto;
  padding: 8px 12px;
  border-bottom: 1px solid var(--lm-border);
}

/* Library, profile, and orders share the same dense operational surface. */
body.lm-app .profile_language_section,
body.lm-app .header-section {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--lm-border);
}

body.lm-app .orders-container {
  max-width: 1180px;
  margin: 0 auto;
}

body.lm-app .order-card {
  overflow: hidden;
  margin-bottom: 18px;
}

body.lm-app .order-header {
  padding: 16px 18px !important;
}

body.lm-app .order-content {
  padding: 18px !important;
}

body.lm-app .info-grid {
  gap: 14px !important;
}

body.lm-app .info-section,
body.lm-app .pricing-section {
  padding: 16px !important;
}

body.lm-app .view-details-btn {
  border: 1px solid var(--lm-charcoal) !important;
  border-radius: var(--lm-radius) !important;
  background: var(--lm-charcoal) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Authentication: the public brand becomes a focused industrial split panel. */
body.lm-auth {
  min-height: 100vh;
  display: flex !important;
  flex-direction: column !important;
  background: var(--lm-canvas) !important;
}

body.lm-auth > .container {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  max-width: 1120px !important;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(420px, 1.15fr);
  grid-auto-flow: row;
  align-items: center;
  gap: 0;
  margin: 48px auto !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--lm-border);
  border-radius: var(--lm-radius);
  background: var(--lm-surface);
  box-shadow: var(--lm-shadow-overlay);
}

body.lm-auth > .container::before {
  grid-column: 1;
  grid-row: 1 / span 20;
  align-self: stretch;
  min-height: 650px;
  background:
    linear-gradient(180deg, rgb(23 20 18 / 32%), rgb(23 20 18 / 88%)),
    url("/static/uploads/Wallpapwer6.png") center / cover no-repeat;
  content: "";
}

body.lm-auth > .container > .brand-title,
body.lm-auth > .container > .brand-subtitle,
body.lm-auth > .container > .divider {
  position: absolute;
  z-index: 2;
  left: 36px;
  width: calc(36% - 56px);
  max-width: 340px;
  color: #fff !important;
  text-align: left !important;
  text-shadow: none !important;
}

body.lm-auth > .container > .brand-title,
body.lm-auth > .container > .brand-subtitle {
  font-family: "Conthrax", Impact, sans-serif !important;
}

body.lm-auth > .container > .brand-title {
  top: 48px;
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem) !important;
  line-height: 1;
}

body.lm-auth > .container > .brand-subtitle {
  top: 106px;
  color: var(--lm-accent) !important;
  font-size: clamp(0.56rem, 1vw, 0.78rem) !important;
  line-height: 1.35;
}

body.lm-auth > .container > .divider {
  top: 154px;
  border-color: rgb(255 255 255 / 32%) !important;
}

body.lm-auth .login-container,
body.lm-auth .register-container,
body.lm-auth .forms {
  grid-column: 2;
  width: min(100%, 560px);
  max-width: none !important;
  margin: 0 auto !important;
  padding: clamp(28px, 5vw, 64px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.lm-auth .login-container::before,
body.lm-auth .register-container::before,
body.lm-auth .forms::before {
  display: block;
  margin-bottom: 8px;
  color: var(--lm-brand);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body.lm-auth .login-container::before {
  content: "LaserMaster login";
}

body.lm-auth .register-container::before {
  content: "LaserMaster register";
}

body.lm-auth .forms::before {
  content: "LaserMaster account";
}

html[lang="bg"] body.lm-auth .login-container::before {
  content: "LaserMaster вход";
}

html[lang="bg"] body.lm-auth .register-container::before {
  content: "LaserMaster регистрация";
}

html[lang="gr"] body.lm-auth .login-container::before {
  content: "LaserMaster σύνδεση";
}

html[lang="gr"] body.lm-auth .register-container::before {
  content: "LaserMaster εγγραφή";
}

html[lang="de"] body.lm-auth .login-container::before {
  content: "LaserMaster Anmeldung";
}

html[lang="de"] body.lm-auth .register-container::before {
  content: "LaserMaster Registrierung";
}

body.lm-auth .google-btn {
  border: 1px solid var(--lm-charcoal) !important;
  border-radius: var(--lm-radius) !important;
  background: var(--lm-charcoal) !important;
  color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}

body.lm-auth .video-container {
  grid-column: 2;
  width: min(100%, 560px);
  max-height: none;
  margin: -24px auto 36px !important;
  padding: 0 64px !important;
  overflow: hidden;
  border-radius: 0 !important;
  background: transparent !important;
}

body.lm-auth .video-title {
  color: var(--lm-text-muted) !important;
  font-size: 0.92rem;
  text-shadow: none !important;
}

body.lm-auth .responsive-video {
  display: none;
}

body.lm-auth .lm-how-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  color: var(--lm-brand) !important;
  font-weight: 800;
  text-decoration: none;
}

body.lm-auth .lm-how-link:hover {
  color: var(--lm-brand-hover) !important;
  text-decoration: underline;
}

body.lm-auth > h3 {
  width: min(560px, calc(100% - 32px));
  margin: 52px auto 0 !important;
  color: var(--lm-text) !important;
}

body.lm-auth > hr {
  width: min(560px, calc(100% - 32px));
  margin-inline: auto;
  border-color: var(--lm-border) !important;
}

body.lm-auth > .forms,
body.lm-auth > .flash-error,
body.lm-auth > .success {
  width: min(560px, calc(100% - 32px));
  margin-inline: auto !important;
}

body.lm-auth > .lm-site-footer {
  position: static !important;
  width: 100%;
  margin-top: auto !important;
  padding: 3rem 0 !important;
}

@media (max-width: 991.98px) {
  .lm-navbar {
    min-height: 92px;
  }

  .lm-navbar .navbar-collapse {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--lm-border);
    border-radius: var(--lm-radius);
    background: var(--lm-surface);
    box-shadow: var(--lm-shadow-sm);
  }

  .lm-navbar .navbar-nav {
    align-items: stretch;
  }

  .lm-navbar .nav-link {
    width: 100%;
  }

  body.lm-auth > .container {
    grid-template-columns: 1fr;
  }

  body.lm-auth > .container::before {
    grid-column: 1;
    grid-row: 1;
    min-height: 190px;
  }

  body.lm-auth > .container > .brand-title,
  body.lm-auth > .container > .brand-subtitle,
  body.lm-auth > .container > .divider {
    left: 28px;
    width: calc(100% - 56px);
  }

  body.lm-auth > .container > .brand-title { top: 34px; }
  body.lm-auth > .container > .brand-subtitle { top: 86px; }
  body.lm-auth > .container > .divider { top: 132px; }

  body.lm-auth .login-container,
  body.lm-auth .register-container,
  body.lm-auth .forms,
  body.lm-auth .video-container {
    grid-column: 1;
  }
}

@media (max-width: 575.98px) {
  .lm-navbar {
    width: min(100% - 20px, 1480px);
  }

  .lm-navbar .navbar-brand-subtitle {
    max-width: 210px;
    white-space: normal;
  }

  body.lm-app > .lm-page-shell {
    width: calc(100% - 20px);
    margin-top: 14px !important;
    padding: 15px !important;
  }

  body.lm-app .cart-item {
    flex-direction: column !important;
  }

  body.lm-app .cart-item-image {
    width: 100% !important;
  }

  body.lm-app .grand-total-section {
    position: static;
  }

  body.lm-auth > .container {
    width: calc(100% - 20px);
    margin: 10px auto 24px !important;
  }

  body.lm-auth .login-container,
  body.lm-auth .register-container,
  body.lm-auth .forms {
    padding: 26px 20px !important;
  }

  body.lm-auth .video-container {
    padding: 0 20px !important;
  }
}
