:root {
  color-scheme: light;
  --ink: #111114;
  --muted: #6f7177;
  --line: rgba(17, 17, 20, 0.12);
  --soft: #f5f5f7;
  --paper: #ffffff;
  --accent: #0071e3;
  --accent-dark: #005bbb;
  --success: #0f8f5f;
  --warn: #b56b00;
  --danger: #c7372f;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.11);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

p,
span,
strong,
small,
h1,
h2,
h3,
h4,
button,
input,
select,
textarea {
  overflow-wrap: anywhere;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(17, 17, 20, 0.08);
  backdrop-filter: blur(22px);
}

.admin-topbar {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
}

.brand,
.nav,
.account-pill,
.hero-actions,
.spec-list,
.checkout-panel,
.section-head,
.panel-head,
.admin-head,
.product-card footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 7px;
  font-size: 15px;
  font-weight: 650;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #ffffff 0 16%, #111114 17% 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}

.brand-mark.has-custom-logo {
  width: clamp(52px, 8vw, 104px);
  height: 42px;
  min-width: 0;
  max-width: 104px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.topbar .brand-mark.has-custom-logo,
.admin-topbar .brand-mark.has-custom-logo {
  width: clamp(68px, 7vw, 92px);
  height: 42px;
  max-width: 92px;
  transform: translateY(-1px);
}

.site-footer .brand-mark.has-custom-logo,
.logo-preview .brand-mark.has-custom-logo {
  width: clamp(52px, 10vw, 120px);
  height: 42px;
  max-width: 120px;
}

.nav {
  gap: 8px;
  justify-self: center;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  padding: 4px;
  background: rgba(245, 245, 247, 0.76);
  border: 1px solid rgba(17, 17, 20, 0.08);
  border-radius: 999px;
}

.nav a {
  position: relative;
  min-width: 92px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #4d4f54;
  font-size: 14px;
  text-align: center;
}

.nav a.has-alert::after,
.customer-support-link.has-alert::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 8px;
  width: 9px;
  height: 9px;
  background: #ff3b30;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.nav a.active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
}

.mobile-menu-button {
  display: none;
  min-height: 38px;
  border: 1px solid rgba(17, 17, 20, 0.12);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--ink);
  background: rgba(245, 245, 247, 0.9);
  cursor: pointer;
}

.topbar > .ghost-button,
.account-pill {
  justify-self: end;
}

.account-pill {
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.language-control {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.language-control > span:first-child {
  display: none;
}

.language-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 142px;
  height: 38px;
  padding: 4px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.24)),
    rgba(245, 245, 247, 0.48);
  border: 1px solid rgba(17, 17, 20, 0.12);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(17, 17, 20, 0.06),
    0 12px 34px rgba(0, 0, 0, 0.13);
  backdrop-filter: blur(24px) saturate(1.65);
  -webkit-backdrop-filter: blur(24px) saturate(1.65);
  white-space: nowrap;
}

.language-switch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.06));
  pointer-events: none;
}

.language-thumb {
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: left 0.28s cubic-bezier(0.2, 0.9, 0.2, 1), box-shadow 0.2s ease;
  pointer-events: none;
}

.language-switch[data-active="en"] .language-thumb,
.language-switch.is-en .language-thumb {
  left: 50%;
}

.language-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.language-option.active {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  transform: none;
}

.language-option:not(.active) {
  opacity: 0.68;
}

.language-option img {
  width: 18px;
  height: 12px;
  display: block;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(17, 17, 20, 0.08);
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(245, 245, 247, 0.92);
  color: var(--ink);
  font-weight: 700;
}

.check-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.modeling-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.quote-type-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 58px));
  overflow: hidden;
  background: #f0f1f3;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(246, 247, 249, 0.96) 0%, rgba(246, 247, 249, 0.82) 34%, rgba(246, 247, 249, 0.18) 72%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(650px, calc(100% - 40px));
  padding: clamp(84px, 13vw, 150px) 0 110px clamp(22px, 8vw, 118px);
}

.hero-copy p,
.section-head p,
.order-copy p,
.admin-lock p,
.admin-head p {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 650;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--accent);
}

.primary-button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.secondary-button {
  color: var(--accent);
  background: rgba(0, 113, 227, 0.1);
}

.ghost-button {
  color: #34363a;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.section,
.order-studio,
.admin-shell,
.auth-strip,
.checkout-page {
  padding: 84px clamp(20px, 5vw, 72px);
}

.section-head,
.admin-head {
  justify-content: space-between;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto 34px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.seo-services {
  padding-top: 72px;
  padding-bottom: 72px;
  background: #ffffff;
}

.seo-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.seo-service-grid article {
  display: grid;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid rgba(17, 17, 20, 0.12);
}

.seo-service-grid h3 {
  font-size: 23px;
}

.seo-service-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.seo-faq {
  padding-top: 72px;
  padding-bottom: 72px;
  background: #f5f6f8;
}

.seo-faq-list {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}

.seo-faq-list article {
  padding: 22px 0;
  border-top: 1px solid rgba(17, 17, 20, 0.12);
}

.seo-faq-list h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.seo-faq-list p {
  color: var(--muted);
  line-height: 1.65;
}

.product-card {
  display: grid;
  gap: 18px;
  min-height: 360px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid rgba(17, 17, 20, 0.06);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 113, 227, 0.24);
  box-shadow: 0 18px 42px rgba(17, 17, 20, 0.08);
  outline: none;
}

.product-visual {
  display: grid;
  place-items: center;
  overflow: hidden;
  height: 168px;
  min-height: 168px;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.95) 0 20%, rgba(255, 255, 255, 0) 21%),
    linear-gradient(145deg, #d9dde4, #ffffff 48%, #c4cad4);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.product-visual img,
.admin-product-image img,
.cart-thumb img,
.line-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-visual.has-image {
  background: #ffffff;
}

.product-card p {
  color: var(--muted);
  line-height: 1.5;
}

.product-card footer {
  align-self: end;
  justify-content: space-between;
  gap: 12px;
}

.coming-soon {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 280px;
  border-radius: var(--radius);
  background: var(--soft);
  border: 1px solid rgba(17, 17, 20, 0.06);
  color: var(--ink);
  font-size: clamp(44px, 9vw, 96px);
  font-weight: 850;
  letter-spacing: 0;
  text-align: center;
}

.order-studio {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  overflow: hidden;
  isolation: isolate;
  background: #111114;
  color: #ffffff;
}

.quote-studio::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(17, 17, 20, 0.94), rgba(17, 17, 20, 0.62)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 30%);
  pointer-events: none;
}

.quote-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 1.4s ease;
  pointer-events: none;
}

.quote-studio:hover .quote-video,
.quote-studio:focus-within .quote-video {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .quote-video {
    transition: opacity 0.2s ease;
  }
}

.order-copy {
  position: sticky;
  top: 100px;
  z-index: 2;
}

.order-copy h2 {
  max-width: 560px;
}

.spec-list {
  gap: 10px;
  flex-wrap: wrap;
}

.spec-list span {
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.order-form,
.panel,
.admin-lock {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 17, 20, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: start;
  background: var(--soft);
}

.auth-strip > div:first-child {
  max-width: 520px;
}

.auth-strip p {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 650;
}

.auth-grid,
.checkout-grid {
  display: grid;
  gap: 18px;
}

.auth-grid {
  grid-template-columns: 1fr 1fr;
}

.order-form {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
  color: var(--ink);
  z-index: 2;
}

label,
.stack-form {
  display: grid;
  gap: 8px;
}

label {
  color: #4d4f54;
  font-size: 13px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 113, 227, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.11);
}

.password-field {
  position: relative;
  display: block;
  width: 100%;
}

.password-field input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  margin: auto 0;
  padding: 0;
  color: #5f636b;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
  box-shadow: none;
}

.password-toggle:hover,
.password-toggle.is-visible {
  color: var(--blue);
  background: rgba(0, 113, 227, 0.08);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-panel {
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--soft);
  border-radius: var(--radius);
}

.checkout-panel span,
.metrics span,
.muted {
  color: var(--muted);
}

.checkout-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
}

.paypal-box {
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

.paypal-box p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.admin-shell {
  background: var(--soft);
}

.checkout-page,
.my-orders,
.account-page {
  background: #ffffff;
}

.account-page {
  min-height: calc(100vh - 58px);
  padding: 74px clamp(20px, 5vw, 72px);
  background: var(--soft);
}

.page-head {
  align-items: end;
}

.page-head h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(44px, 6vw, 76px);
}

.checkout-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr) minmax(320px, 0.8fr);
  max-width: 1220px;
  margin: 0 auto;
  align-items: start;
}

.checkout-grid.two,
.account-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  max-width: 1120px;
}

.account-grid {
  display: grid;
  gap: 18px;
  margin: 0 auto 18px;
}

.account-dashboard {
  max-width: 1120px;
  margin: 0 auto;
}

.full-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  text-align: center;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 720px;
  margin: 0 auto 28px;
}

.checkout-steps span,
.checkout-steps a {
  display: block;
  padding: 10px 12px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 20, 0.08);
  border-radius: 999px;
}

.checkout-steps .active {
  color: #ffffff;
  background: var(--ink);
}

.address-preview {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.confirmation {
  max-width: 820px;
  margin: 54px auto;
  padding: clamp(28px, 5vw, 56px);
}

.confirmation p {
  color: var(--accent);
  font-weight: 650;
}

.cart-list,
.summary-lines,
.line-items {
  display: grid;
  gap: 12px;
}

.cart-item,
.summary-lines div,
.line-items div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(17, 17, 20, 0.08);
}

.summary-lines .summary-tax-line {
  color: var(--muted);
  font-size: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
}

.cart-thumb,
.line-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid rgba(17, 17, 20, 0.08);
  border-radius: var(--radius);
}

.cart-thumb {
  width: 76px;
  height: 64px;
  font-weight: 700;
}

.product-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 44px);
  background: rgba(10, 11, 14, 0.42);
  backdrop-filter: blur(18px);
}

.product-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(20px, 4vw, 42px);
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 32px 90px rgba(10, 11, 14, 0.22);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.product-modal-image {
  display: grid;
  place-items: center;
  min-height: 420px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.95) 0 20%, rgba(255, 255, 255, 0) 21%),
    linear-gradient(145deg, #d9dde4, #ffffff 48%, #c4cad4);
}

.product-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.product-modal-image span {
  font-size: 46px;
  font-weight: 800;
}

.product-modal-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 20px 4px;
}

.product-modal-copy h2 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.95;
  letter-spacing: 0;
}

.product-modal-copy > p:not(.muted) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.product-modal-facts {
  display: grid;
  gap: 10px;
  margin: 8px 0;
}

.product-modal-facts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(17, 17, 20, 0.09);
}

.product-modal-facts span {
  color: var(--muted);
}

.line-thumb {
  width: 56px;
  height: 48px;
  flex: 0 0 auto;
}

.cart-price {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-total strong {
  font-size: 28px;
}

.checkout-summary {
  position: sticky;
  top: 78px;
}

.admin-lock {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 28px;
  align-items: end;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
}

body:not(.admin-authenticated) .admin-lock {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
}

.login-form {
  display: grid;
  gap: 14px;
}

.hidden {
  display: none !important;
}

.admin-dashboard {
  max-width: 1220px;
  margin: 0 auto;
}

.admin-page {
  min-height: calc(100vh - 58px);
  padding: 74px clamp(20px, 5vw, 72px);
  background: var(--soft);
}

body:not(.admin-authenticated) .admin-page {
  display: grid;
  min-height: 100vh;
  padding-top: clamp(28px, 6vw, 72px);
  place-items: center;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.metrics div {
  padding: 20px;
  background: var(--paper);
  border: 1px solid rgba(17, 17, 20, 0.07);
  border-radius: var(--radius);
}

.metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.55fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: start;
}

.custom-admin-grid {
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
}

.custom-admin-sidebar {
  display: grid;
  gap: 10px;
}

.compact-panel {
  padding: 18px;
}

.panel {
  padding: 22px;
  box-shadow: none;
}

.settings-panel {
  grid-column: 2;
}

.logo-settings {
  display: grid;
  gap: 14px;
}

.logo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.panel-head,
.admin-head,
.product-card footer {
  justify-content: space-between;
}

.orders-list,
.admin-products,
.custom-print-list {
  display: grid;
  gap: 12px;
}

.order-item,
.admin-product {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid rgba(17, 17, 20, 0.06);
  border-radius: var(--radius);
}

.product-admin-card {
  grid-template-columns: 168px minmax(0, 1fr) minmax(220px, 0.45fr);
  align-items: start;
  padding: 16px;
}

.admin-product-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 168px;
  height: 142px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 20, 0.08);
  border-radius: var(--radius);
}

.image-update-form {
  display: grid;
  gap: 8px;
}

.product-editor-panel {
  display: grid;
  gap: 16px;
}

.product-admin-copy {
  align-self: stretch;
}

.product-admin-actions {
  display: grid;
  align-content: start;
  gap: 10px;
}

.product-edit-form {
  display: grid;
  gap: 12px;
}

.file-field {
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.order-item header,
.order-actions,
.admin-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-admin-card {
  display: grid;
  align-items: center;
  justify-content: normal;
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.order-detail {
  gap: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.detail-grid div {
  padding: 14px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 20, 0.07);
  border-radius: var(--radius);
}

.detail-grid h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}

.detail-grid p,
.line-items small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.line-items div {
  align-items: flex-start;
}

.line-items span,
.line-items small {
  display: block;
}

.shipment-panel,
.shipment-summary,
.invoice-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 20, 0.08);
  border-radius: var(--radius);
}

.shipment-panel h4 {
  margin: 0;
}

.tax-metrics {
  margin: 16px 0;
}

.invoice-page {
  min-height: 100vh;
  padding: 48px clamp(16px, 5vw, 72px);
  background: var(--soft);
}

.invoice-document {
  max-width: 920px;
  margin: 0 auto;
  background: #ffffff;
}

.invoice-toolbar,
.invoice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.invoice-lines,
.invoice-totals {
  margin-top: 22px;
}

@media print {
  .topbar,
  .no-print,
  .mobile-menu-button,
  .language-control {
    display: none !important;
  }

  body,
  .invoice-page,
  .admin-page {
    background: #ffffff !important;
  }

  .panel,
  .invoice-document {
    box-shadow: none !important;
    border: 0 !important;
  }
}

.shipment-form,
.shipment-event-form,
.shipment-history {
  display: grid;
  gap: 10px;
}

.shipment-history div {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid rgba(17, 17, 20, 0.08);
}

.shipment-history span {
  font-weight: 650;
}

.shipment-history small {
  color: var(--muted);
}

.custom-print-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 20, 0.06);
  border-radius: var(--radius);
}

.custom-print-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(17, 17, 20, 0.08);
}

.custom-print-card header strong {
  font-size: 24px;
}

.custom-print-price {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.custom-print-form {
  display: grid;
  gap: 14px;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
}

.ticket-list,
.custom-options-list,
.option-list {
  display: grid;
  gap: 14px;
}

.custom-options-list {
  grid-template-columns: 1fr;
  align-items: start;
}

.admin-search {
  margin: 12px 0 18px;
}

.ticket-card,
.option-group {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 20, 0.06);
  border-radius: var(--radius);
}

.option-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(17, 17, 20, 0.08);
}

.option-group-head h4 {
  margin: 0 0 3px;
}

.option-group-head span {
  color: var(--muted);
  font-size: 13px;
}

.option-group-head strong {
  padding: 5px 10px;
  color: var(--accent);
  background: rgba(0, 113, 227, 0.1);
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
}

.option-group-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.option-group-actions .ghost-button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}

.custom-option-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ticket-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ticket-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.support-admin-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.35fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ticket-sidebar {
  display: grid;
  gap: 8px;
  max-height: 680px;
  overflow: auto;
  padding-right: 4px;
}

.ticket-list-item {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid rgba(17, 17, 20, 0.08);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--ink);
  text-align: left;
  background: #ffffff;
  cursor: pointer;
}

.ticket-list-item.active {
  border-color: rgba(0, 113, 227, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.ticket-list-item.has-ticket-alert {
  padding-right: 48px;
}

.ticket-list-item.has-ticket-alert::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  background: #ff3b30;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(255, 59, 48, 0.35);
}

.ticket-unread {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #ff3b30;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.ticket-list-item span,
.ticket-list-item small {
  color: var(--muted);
}

.ticket-card-detail {
  min-height: 520px;
}

.chat-thread {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(17, 17, 20, 0.08);
  border-radius: var(--radius);
}

.chat-message {
  width: min(88%, 620px);
  padding: 12px;
  background: var(--soft);
  border-radius: var(--radius);
}

.chat-message.admin-message {
  justify-self: end;
  color: #ffffff;
  background: var(--ink);
}

.chat-message p {
  margin-bottom: 6px;
  line-height: 1.45;
}

.chat-message small {
  display: flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  opacity: 0.68;
}

.read-check {
  font-weight: 800;
  color: #8a8f98;
  opacity: 1;
}

.read-check.read {
  color: #0a84ff;
}

.cookie-banner {
  position: fixed;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
  padding: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 17, 20, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.cookie-banner p {
  margin: 4px 0 0;
  color: var(--muted);
}

.cookie-banner a {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.support-popup {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: grid;
  gap: 5px;
  width: min(340px, calc(100vw - 44px));
  padding: 16px;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 59, 48, 0.26);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.support-popup::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 10px;
  height: 10px;
  background: #ff3b30;
  border-radius: 50%;
}

.support-popup span {
  color: var(--muted);
  line-height: 1.4;
}

.ticket-reply-form,
.option-row {
  display: grid;
  gap: 10px;
}

.option-row {
  grid-template-columns: minmax(0, 1fr) 130px auto;
  align-items: center;
  padding: 12px;
  background: var(--soft);
  border: 1px solid rgba(17, 17, 20, 0.06);
  border-radius: var(--radius);
}

.option-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.option-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.option-group h4 {
  margin: 0;
}

.user-admin-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid rgba(17, 17, 20, 0.06);
  border-radius: var(--radius);
}

.user-admin-head,
.user-actions,
.reset-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reset-form {
  flex: 1;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(0, 113, 227, 0.11);
  color: var(--accent);
}

.status.bestätigt,
.status.bestaetigt {
  color: var(--success);
  background: rgba(15, 143, 95, 0.12);
}

.status.in-druck {
  color: var(--warn);
  background: rgba(181, 107, 0, 0.13);
}

.status.fertig {
  color: #4c42b7;
  background: rgba(76, 66, 183, 0.12);
}

.status.storniert {
  color: var(--danger);
  background: rgba(199, 55, 47, 0.11);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 44px));
  padding: 14px 16px;
  color: #ffffff;
  background: rgba(17, 17, 20, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
    padding: 12px 16px;
    gap: 12px;
  }

  .admin-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand {
    justify-self: start;
    min-width: 0;
  }

  .topbar .brand-mark.has-custom-logo,
  .admin-topbar .brand-mark.has-custom-logo {
    width: 66px;
    height: 36px;
    max-width: 66px;
    transform: translateY(-1px);
  }

  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
    padding: 10px;
    background: rgba(245, 245, 247, 0.92);
    border-radius: 16px;
    overflow: visible;
  }

  .topbar.menu-open .nav {
    display: grid;
  }

  .nav a {
    min-width: 0;
    width: 100%;
    padding: 12px 14px;
    text-align: left;
    white-space: normal;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 12px;
  }

  .topbar > .ghost-button,
  .account-pill,
  .language-control {
    display: none;
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .topbar.menu-open > .ghost-button,
  .topbar.menu-open .account-pill,
  .topbar.menu-open .language-control {
    display: flex;
  }

  .account-pill,
  .language-control {
    justify-content: space-between;
    padding: 10px;
    background: rgba(245, 245, 247, 0.92);
    border: 1px solid rgba(17, 17, 20, 0.08);
    border-radius: 16px;
  }

  .language-control > span:first-child {
    display: inline;
  }

  .language-switch {
    flex: 0 0 auto;
  }

  .product-grid,
  .seo-service-grid,
  .order-studio,
  .admin-lock,
  .admin-grid,
  .metrics,
  .auth-strip,
  .auth-grid,
  .checkout-grid,
  .checkout-grid.two,
  .account-grid,
  .support-grid,
  .support-admin-layout,
  .custom-option-fields,
  .custom-options-list,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .checkout-summary,
  .order-copy {
    position: static;
  }

  .ticket-sidebar {
    max-height: 360px;
  }

  .settings-panel {
    grid-column: auto;
  }

  .product-modal {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .product-modal-image {
    min-height: 280px;
  }
}

@media (min-width: 921px) and (max-width: 1220px) {
  .topbar {
    gap: 8px;
    padding: 0 18px;
  }

  .nav a {
    min-width: auto;
    padding-inline: 12px;
  }

  .account-pill {
    gap: 6px;
  }

  .language-option {
    padding-inline: 8px;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: clamp(40px, 13vw, 54px);
    line-height: 1;
  }

  h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .hero {
    min-height: auto;
  }

  .hero img {
    opacity: 0.62;
  }

  .hero-copy {
    width: 100%;
    padding: 52px 18px 68px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(246, 247, 249, 0.98) 0%, rgba(246, 247, 249, 0.82) 58%, rgba(246, 247, 249, 0.22) 100%);
  }

  .form-row,
  .order-item header,
  .order-actions,
  .checkout-panel,
  .section-head,
  .panel-head,
  .admin-head,
  .admin-product,
  .product-admin-card {
    grid-template-columns: 1fr;
    display: grid;
    align-items: stretch;
  }

  .topbar {
    position: sticky;
    align-items: stretch;
  }

  .brand {
    justify-content: flex-start;
    min-height: 32px;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .topbar > .ghost-button {
    width: auto;
  }

  .account-pill {
    justify-self: stretch;
    justify-content: center;
    flex-wrap: wrap;
  }

  .product-card {
    min-height: auto;
    padding: 14px;
    gap: 12px;
  }

  .product-visual {
    height: 190px;
    min-height: 190px;
  }

  .product-card footer,
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-product-image {
    width: 100%;
    height: 180px;
  }

  .section,
  .order-studio,
  .admin-shell,
  .auth-strip,
  .checkout-page,
  .account-page,
  .admin-page {
    padding: 56px 18px;
  }

  .admin-dashboard {
    display: grid;
    gap: 14px;
  }

  .metrics {
    gap: 10px;
    margin-bottom: 4px;
  }

  .panel,
  .order-form,
  .admin-lock,
  .confirmation {
    padding: 18px;
  }

  .compact-panel {
    padding: 14px;
  }

  .metrics div {
    padding: 16px;
  }

  .checkout-steps {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .user-admin-head,
  .user-actions,
  .reset-form,
  .ticket-card header,
  .option-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .cart-item,
  .summary-lines div,
  .line-items div,
  .custom-print-card header {
    align-items: flex-start;
  }

  .custom-print-card header {
    display: grid;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .line-items div,
  .summary-lines div,
  .summary-total,
  .cart-price {
    display: grid;
    justify-items: stretch;
    text-align: left;
  }

  .cart-thumb {
    width: 100%;
    height: 170px;
  }

  .ticket-sidebar {
    max-height: none;
    padding-right: 0;
  }

  .ticket-list-item {
    padding: 14px;
  }

  .support-admin-layout,
  .admin-grid,
  .custom-admin-sidebar,
  .custom-options-list,
  .option-list {
    gap: 10px;
  }

  .ticket-actions,
  .option-group-actions,
  .option-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .custom-print-price {
    justify-items: start;
  }

  .chat-message {
    width: 100%;
  }

  .cookie-banner {
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: grid;
  }

  .support-popup,
  .toast {
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
    max-width: none;
  }
}

@media (max-width: 420px) {
  .topbar {
    padding: 12px 14px;
  }

  .nav a {
    padding: 12px;
    font-size: 13px;
  }

  .account-pill {
    display: grid;
    gap: 8px;
  }

  .language-control {
    display: grid;
    gap: 8px;
  }

  .language-switch {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .language-option {
    justify-content: center;
  }

  .account-pill .ghost-button {
    width: 100%;
  }

  .hero-copy {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section,
  .order-studio,
  .admin-shell,
  .auth-strip,
  .checkout-page,
  .account-page,
  .admin-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .panel,
  .order-form,
  .custom-print-card,
  .ticket-card,
  .option-group,
  .user-admin-card {
    padding: 16px;
  }

  .admin-search {
    margin: 8px 0 12px;
  }
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(17, 17, 20, 0.08);
  background: rgba(247, 247, 249, 0.88);
  color: var(--muted);
}

.footer-brand {
  margin-bottom: 10px;
}

.site-footer p {
  margin: 0;
  max-width: 460px;
  line-height: 1.55;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.site-footer nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 17, 20, 0.06);
}

.footer-note {
  justify-self: end;
  white-space: nowrap;
  font-size: 13px;
}

.legal-page {
  padding: 52px clamp(18px, 6vw, 96px);
  background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
}

.legal-document {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.legal-document h1 {
  font-size: clamp(42px, 8vw, 86px);
  line-height: 0.96;
  margin: 0 0 12px;
}

.legal-document h2 {
  margin: 28px 0 8px;
  font-size: 22px;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-document ul {
  margin: 0;
  padding-left: 20px;
}

.legal-box {
  padding: 22px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid rgba(17, 17, 20, 0.08);
}

@media (max-width: 860px) {
  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .footer-note {
    justify-self: start;
    white-space: normal;
  }
}
