/* Small visual refinements for the existing CopiMine site language. */
.cm72-about {
  grid-template-columns: minmax(250px, .82fr) minmax(0, 1.18fr);
  gap: clamp(38px, 7vw, 96px);
}

.cm72-intro > p {
  max-width: 43ch;
  line-height: 1.85;
}

.cm72-feature-list > a {
  padding: 17px 14px;
  border-radius: 10px;
  transition: background-color .18s ease, border-color .18s ease;
}

.cm72-feature-list > a:hover {
  background: #171d20;
}

.cm72-feature-list > a:focus-visible {
  outline-offset: 2px;
}

.cm72-feature-list h3 {
  margin-bottom: 6px;
}

.cm72-feature-list p {
  max-width: 48ch;
  line-height: 1.65;
}

.cm72-map-copy > h2 {
  max-width: 12ch;
}

.cm72-map-preview {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 22px 18px;
  padding: clamp(22px, 4vw, 42px);
  isolation: isolate;
  background-color: #111919;
  background-image:
    linear-gradient(28deg, transparent 49.6%, #b8d5b51a 50%, transparent 50.4%),
    linear-gradient(148deg, transparent 49.6%, #b8d5b51a 50%, transparent 50.4%),
    repeating-linear-gradient(0deg, transparent 0 39px, #b8d5b50d 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, #b8d5b50d 40px),
    radial-gradient(ellipse at 72% 20%, #48634a40, transparent 52%),
    linear-gradient(145deg, #111919, #1c2822 62%, #111716);
}

.cm72-map-preview::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 12%, #090d0dc9 100%);
  content: "";
}

.cm72-map-preview-mark {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #83c59555;
  border-radius: 12px;
  color: #8fd0a1;
  background: #0e1914d9;
}

.cm72-map-preview-copy {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  gap: 8px;
  min-width: 0;
}

.cm72-map-preview-copy > span {
  color: #9ac9a6;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cm72-map-preview-copy > strong {
  color: #f0f4f1;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.2;
}

.cm72-map-preview-copy > small {
  color: #b3c0b8;
  font-size: 12px;
  line-height: 1.6;
}

.cm72-map-preview > .cm72-map-preview-link {
  position: static;
  display: flex;
  grid-column: 2;
  grid-row: 2;
  width: fit-content;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #ffffff28;
  border-radius: 9px;
  color: #edf4ef;
  background: #0c1310bd;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.cm72-map-preview:hover > .cm72-map-preview-link {
  border-color: #8fd0a1a0;
  background: #17221b;
}

.cm-public-page {
  max-width: 860px;
  margin-bottom: 32px;
  padding: clamp(22px, 4vw, 38px);
}

.cm-public-page > :first-child {
  margin-top: 0;
}

.cm-public-page > :last-child {
  margin-bottom: 0;
}

/* The hero uses only a soft gradient over the server photo. */
.cm72-hero {
  border: 0;
  border-radius: 22px;
  box-shadow: none;
}

.cm72-hero::after {
  inset: 0;
  background-image: linear-gradient(180deg, #070a1026 0%, transparent 28%, #10121438 45%, #101214ce 74%, #101214 100%);
}

.cm72-hero-content .kicker {
  color: var(--amber, #d9bd83);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .cm72-hero {
    justify-content: flex-start;
    text-align: left;
  }

  .cm72-hero-content {
    max-width: 900px;
    padding: 0 0 clamp(105px, 12vh, 150px) clamp(44px, 8vw, 112px);
  }

  .cm72-hero h1 {
    max-width: 810px;
  }

  .cm72-hero-content > p {
    max-width: 460px;
  }

  .cm72-address {
    margin-left: 0;
  }

  .cm72-scroll-cue {
    left: clamp(44px, 8vw, 112px);
    transform: none;
  }
}

.cm72-feature-list > a {
  border-inline-start: 2px solid transparent;
  border-radius: 4px 12px 4px 4px;
}

.cm72-feature-list > a:hover {
  border-inline-start-color: #cba568;
  background: linear-gradient(90deg, #b9924b10, #171d2000 58%);
}

.cm72-map-preview {
  border-radius: 5px 20px 5px 20px;
}

.admin-content .v6-map-page .section-head h1 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.admin-content .v6-map-page .v6-map-sidebar {
  align-self: start;
}

@media (max-width: 1100px) {
  .cm72-about {
    gap: 44px;
  }
}

@media (max-width: 680px) {
  .cm72-scroll-cue {
    left: 15px;
    transform: none;
  }

  .cm72-about {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }

  .cm72-feature-list > a {
    padding-inline: 10px;
  }

  .cm72-map-preview {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px 12px;
    padding: 20px 16px;
  }

  .cm72-map-preview-mark {
    width: 38px;
    height: 38px;
  }

  .cm72-map-preview-copy > span {
    font-size: 9px;
  }

  .cm72-map-preview-copy > strong {
    font-size: 20px;
  }

  .cm72-map-preview-copy > small {
    font-size: 11px;
  }

  .cm-public-page {
    padding: 20px 16px;
  }

  .cm72-hero {
    border-radius: 16px;
  }
}

@keyframes cm-home-rise {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  html[data-motion="on"] .cm72-hero-content .kicker { animation: cm-home-rise .42s .03s ease-out both; }
  html[data-motion="on"] .cm72-hero h1 { animation: cm-home-rise .48s .08s ease-out both; }
  html[data-motion="on"] .cm72-hero-content > p { animation: cm-home-rise .48s .15s ease-out both; }
  html[data-motion="on"] .cm72-hero-content > .cm72-start,
  html[data-motion="on"] .cm72-hero-content > .cm72-address { animation: cm-home-rise .48s .22s ease-out both; }

  @media (hover: hover) {
    html[data-motion="on"] .cm72-map-preview { transition: background-position .34s ease, border-color .2s ease; }
    html[data-motion="on"] .cm72-map-preview:hover { background-position: 8px -6px, -7px 5px, 0 8px, 8px 0, center, center; }
    html[data-motion="on"] .product .product-image img { transition: transform .18s cubic-bezier(.2,.7,.2,1); }
    html[data-motion="on"] .product:hover .product-image img { transform: translateY(-3px) scale(1.06); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .cm72-feature-list > a {
    transition: none;
  }

  .cm72-map-preview,
  .product .product-image img {
    transition: none;
  }
}

/* Cookie choice stays small and readable over the page. */
.v6-cookie-banner {
  width: min(570px, calc(100vw - 40px));
  gap: 15px;
  align-items: center;
  padding: 15px;
  border: 1px solid #3b4a43;
  border-radius: 13px;
  background: #111817ed;
  box-shadow: 0 12px 38px #0006;
  backdrop-filter: blur(12px);
}

.v6-cookie-banner > .v6-cookie-illustration {
  display: block;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  margin: 0;
  object-fit: contain;
  background: transparent;
  filter: none;
}

.v6-cookie-copy {
  flex: 1;
  min-width: 0;
}

.v6-cookie-copy h2 {
  margin: 0 0 4px;
  color: #f0f2ee;
  font-size: 17px;
  line-height: 1.3;
}

.v6-cookie-copy p {
  margin: 0;
  color: #b8c1bb;
  font-size: 12px;
  line-height: 1.5;
}

.v6-cookie-info {
  display: inline-block;
  margin-top: 3px;
  color: #a7b1aa;
  font-size: 10px;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.v6-cookie-info:hover,
.v6-cookie-info:focus-visible {
  color: #31daa1;
}

.v6-cookie-actions {
  gap: 7px;
  margin-top: 10px;
}

.v6-cookie-actions .btn {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 11px;
}

@media (max-width: 600px) {
  .v6-cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    gap: 8px;
    padding: 12px;
    border-radius: 11px;
  }

  .v6-cookie-banner > .v6-cookie-illustration {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }

  .v6-cookie-copy h2 {
    font-size: 15px;
  }

  .v6-cookie-copy p {
    font-size: 11px;
  }

  .v6-cookie-actions {
    width: calc(100% + 54px);
    gap: 6px;
    margin: 10px 0 0 -54px;
  }

  .v6-cookie-actions .btn {
    flex: 1 1 auto;
    min-height: 32px;
    padding: 7px 6px;
    font-size: 10px;
    white-space: nowrap;
  }

  .cm72-hero h1 {
    max-width: calc(100vw - 56px);
    font-size: clamp(30px, 8vw, 34px);
    overflow-wrap: anywhere;
  }

  .site-header {
    min-width: 0;
  }

  .site-header > .brand {
    min-width: 0;
    flex-shrink: 1;
  }

  .site-header > .header-actions {
    flex: 0 0 auto;
  }
}

@media (max-width: 600px) {
  .v6-cookie-banner {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .v6-cookie-banner > .v6-cookie-illustration {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .v6-cookie-copy h2 {
    display: inline-block;
    margin: 0 8px 0 0;
    font-size: 13px;
  }

  .v6-cookie-info {
    margin-top: 0;
    font-size: 10px;
  }

  .v6-cookie-actions {
    width: calc(100% + 42px);
    gap: 6px;
    margin: 8px 0 0 -42px;
    flex-wrap: nowrap;
  }

  .v6-cookie-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 32px;
    padding-inline: 6px;
    font-size: 10px;
  }
}

/* The first frame follows the hero's real geometry while the server bootstrap loads. */
.cm-initial-skeleton {
  min-height: 100svh;
  overflow: hidden;
  position: relative;
  background: #101214;
  color: #f3f4f1;
}

.cm-skeleton-header {
  position: absolute;
  z-index: 2;
  top: 28px;
  left: 0;
  right: 0;
  height: 84px;
  display: flex;
  align-items: center;
  gap: 27px;
  padding: 0 32px;
}

.cm-skeleton-header img {
  width: 160px;
  height: auto;
  object-fit: contain;
}

.cm-skeleton-nav,
.cm-skeleton-cart,
.cm-skeleton-action,
.cm-skeleton-copy i,
.cm-skeleton-copy b,
.cm-skeleton-copy span,
.cm-skeleton-copy em,
.cm-skeleton-copy small {
  display: block;
  background: linear-gradient(100deg, #ffffff0d 15%, #ffffff20 48%, #ffffff0d 82%);
  background-size: 220% 100%;
  border-radius: 4px;
  animation: cm-skeleton-shimmer 1.8s ease-in-out infinite;
}

.cm-skeleton-nav { width: 58px; height: 7px; margin-left: auto; }
.cm-skeleton-nav.short { width: 42px; margin-left: 0; }
.cm-skeleton-nav.tiny { width: 34px; margin-left: 0; }
.cm-skeleton-cart { width: 34px; height: 40px; margin-left: auto; border-radius: 8px; }
.cm-skeleton-action { width: 84px; height: 40px; margin-left: 8px; border-radius: 9px; }

.cm-skeleton-hero {
  position: relative;
  isolation: isolate;
  height: min(810px, calc(100svh - 76px));
  min-height: 670px;
  margin-top: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 28px clamp(105px, 12vh, 150px) clamp(44px, 8vw, 112px);
}

.cm-skeleton-hero::before,
.cm-skeleton-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cm-skeleton-hero::before {
  z-index: -2;
  background: url("photos/copimine-night.webp") 50% 31% / cover no-repeat;
  filter: brightness(1.3);
}

/* Static first hero frame: paints as the LCP image before React mounts. */
.cm-skeleton-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
}
.cm-skeleton-hero::before { background: none; }

.cm-skeleton-hero::after {
  z-index: -1;
  background: linear-gradient(180deg, #070a1026 0%, transparent 28%, #10121438 45%, #101214ce 74%, #101214 100%);
}

.cm-skeleton-copy { width: min(900px, 100%); }
.cm-skeleton-copy i { width: 128px; height: 10px; margin-bottom: 20px; }
.cm-skeleton-copy b { width: min(520px, 68vw); height: clamp(40px, 5.6vw, 82px); margin: 5px 0; }
.cm-skeleton-copy b.short { width: min(700px, 78vw); }
.cm-skeleton-copy span { width: min(420px, 70vw); height: 8px; margin: 23px 0 0; }
.cm-skeleton-copy span.short { width: min(310px, 56vw); margin-top: 8px; }
.cm-skeleton-copy em { width: 152px; height: 52px; margin-top: 27px; border-radius: 10px; }
.cm-skeleton-copy small { width: 76px; height: 10px; margin: 17px 0 0 8px; }
.cm-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes cm-skeleton-shimmer {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0 0; }
}

button.is-loading { cursor: progress !important; pointer-events: none; }
button.is-loading::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 9px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: cm-ui-spin .65s linear infinite; }
@keyframes cm-ui-spin { to { transform: rotate(360deg); } }

@media (max-width: 899px) {
  .cm-skeleton-hero {
    justify-content: center;
    padding: 0 28px 90px;
  }
  .cm-skeleton-copy { text-align: center; }
  .cm-skeleton-copy i,
  .cm-skeleton-copy b,
  .cm-skeleton-copy span,
  .cm-skeleton-copy em,
  .cm-skeleton-copy small { margin-left: auto; margin-right: auto; }
  .cm-skeleton-copy b { width: min(650px, 90vw); }
  .cm-skeleton-copy b.short { width: min(560px, 86vw); }
  .cm-skeleton-copy span { width: min(390px, 74vw); }
  .cm-skeleton-copy span.short { width: min(285px, 60vw); }
}

@media (max-width: 760px) {
  .cm-skeleton-header { top: 14px; height: 68px; gap: 10px; padding-inline: 13px; }
  .cm-skeleton-header img { width: 122px; }
  .cm-skeleton-nav { display: none; }
  .cm-skeleton-cart { width: 32px; height: 35px; margin-left: auto; }
  .cm-skeleton-action { width: 62px; height: 35px; margin-left: 0; }
  .cm-skeleton-hero {
    height: 650px;
    min-height: 580px;
    max-height: calc(100svh - 33px);
    margin-top: 14px;
    padding: 0 15px 77px;
  }
  .cm-skeleton-hero::before { background-position: 54% 32%; filter: brightness(1.4); }
}

@media (prefers-reduced-motion: reduce) {
  .cm-skeleton-nav,
  .cm-skeleton-cart,
  .cm-skeleton-action,
  .cm-skeleton-copy i,
  .cm-skeleton-copy b,
  .cm-skeleton-copy span,
  .cm-skeleton-copy em,
  .cm-skeleton-copy small { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  button.is-loading::after { animation: none; border-right-color: currentColor; opacity: .55; }
}

/* The home scene uses a real CopiMine screenshot with a slow camera drift. */
.cm72-hero-frames{position:absolute;inset:0;z-index:-2;overflow:hidden;pointer-events:none;background:#172027}
.cm72-hero-frames::after{content:"";position:absolute;inset:-8%;z-index:1;pointer-events:none;background:radial-gradient(ellipse at 76% 42%,rgba(255,210,157,.2),transparent 26%),radial-gradient(ellipse at 48% 72%,rgba(89,180,150,.09),transparent 42%);mix-blend-mode:screen;opacity:.46;transform:translate3d(1%,.4%,0) scale(1.03);animation:cm72-hero-haze 22s ease-in-out infinite alternate}
.cm72-hero-camera{position:absolute;inset:-7%;transform:scale(1.04);transform-origin:center;will-change:transform}
.cm72-hero-frames .cm72-hero-photo{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:50% 31%;z-index:auto;filter:brightness(1.3);opacity:0;transform:scale(1.025);animation:none;will-change:opacity,transform}
.cm72-hero-frames .cm72-hero-photo[data-active="true"]{opacity:1}
@keyframes cm72-hero-haze{0%{opacity:.32;transform:translate3d(1%,.4%,0) scale(1.03)}100%{opacity:.66;transform:translate3d(-1%,-.8%,0) scale(1.08)}}
@keyframes cm72-hero-camera-drift{0%{transform:scale(1.035) translate3d(1.6%,.8%,0)}100%{transform:scale(1.16) translate3d(-2.3%,-1.7%,0)}}
.cm72-hero-camera{animation:cm72-hero-camera-drift 9.5s cubic-bezier(.45,.05,.55,.95) infinite alternate}
.cm72-hero[data-hero-paused="true"] .cm72-hero-camera{animation-play-state:paused}
.cm72-hero[data-hero-paused="true"] .cm72-hero-frames::after{animation-play-state:paused}
.cm72-hero-motion-toggle{position:absolute;top:94px;right:18px;z-index:3;width:36px;height:36px;display:grid;place-items:center;padding:0;border:1px solid rgba(92,229,178,.48);border-radius:50%;background:rgba(13,19,21,.76);color:#eef5f1;backdrop-filter:blur(8px);cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.cm72-hero-motion-toggle svg{width:15px;height:15px}
.cm72-hero-motion-toggle:hover{background:rgba(13,19,21,.78);border-color:rgba(92,229,178,.65);transform:scale(1.04)}
.cm72-hero-motion-toggle:focus-visible{outline:2px solid #5ce5b2;outline-offset:3px}
.v71-overview-analytics>.panel-head{margin-bottom:14px}
.v71-overview-analytics .cm-react-chart-section{margin-top:14px}
.cm-react-chart-loading-card{height:230px;overflow:hidden}
.cm-react-chart-skeleton-title,.cm-react-chart-skeleton-legend{display:block;height:10px;border-radius:8px;background:linear-gradient(90deg,#ffffff08,#ffffff16,#ffffff08);background-size:220% 100%;animation:cm-react-chart-shimmer 1.8s linear infinite}
.cm-react-chart-skeleton-title{width:42%;margin-bottom:20px}
.cm-react-chart-skeleton-legend{width:58%;height:7px;margin-top:14px}
.cm-react-chart-skeleton-plot{position:relative;height:132px;overflow:hidden;border-left:1px solid rgba(220,233,227,.1);border-bottom:1px solid rgba(220,233,227,.1);background:repeating-linear-gradient(to bottom,transparent 0 31px,rgba(220,233,227,.07) 32px)}
.cm-react-chart-skeleton-plot::before{content:"";position:absolute;inset:26% 0 12%;background:linear-gradient(180deg,rgba(56,221,164,.16),rgba(56,221,164,0));clip-path:polygon(0 78%,16% 62%,31% 68%,48% 32%,64% 49%,80% 19%,100% 29%,100% 100%,0 100%)}
.cm-react-chart-skeleton-plot i{position:absolute;left:0;right:0;top:45%;height:2px;background:linear-gradient(90deg,#38dda4aa,#92e8bf55,#38dda4aa);clip-path:polygon(0 95%,16% 48%,31% 70%,48% 20%,64% 52%,80% 8%,100% 35%,100% 100%,80% 73%,64% 90%,48% 58%,31% 100%,16% 78%,0 100%)}
.cm-react-chart-error{padding:18px 20px;border:1px solid rgba(228,141,130,.25);border-radius:12px;background:rgba(72,39,35,.28);color:#efb2a9;font-size:13px}
@keyframes cm-react-chart-shimmer{to{background-position:-220% 0}}
@media(max-width:760px){.cm72-hero-motion-toggle{top:78px;right:12px;width:33px;height:33px}.cm-react-chart-loading-card{height:210px}}
@media(prefers-reduced-motion:reduce){.cm72-hero-camera{animation:none!important;transform:scale(1.04)}.cm72-hero-frames::after{animation:none;opacity:.46;transform:none}.cm72-hero-motion-toggle{transition:none}.cm-react-chart-skeleton-title,.cm-react-chart-skeleton-legend{animation:none}}
