body.page-mockups {
  background:
    radial-gradient(circle at top, rgba(0, 183, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #071018 0%, #09131c 100%);
  color: #eef6fb;
}

.page-mockups .gb-seg-active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

.mockups-page {
  min-height: 100vh;
  padding: 110px 24px 56px;
  max-width: 1440px;
  margin: 0 auto;
}

.mockups-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(10, 22, 33, 0.92), rgba(13, 29, 43, 0.84)),
    rgba(8, 14, 21, 0.9);
  border-radius: 28px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  margin-bottom: 28px;
}

.mockups-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 179, 255, 0.16), transparent 24%),
    radial-gradient(circle at 18% 78%, rgba(42, 210, 160, 0.10), transparent 22%);
}

.mockups-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 34px;
  align-items: stretch;
}

.mockups-panel-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  color: #8fd8ff;
  border: 1px solid rgba(143, 216, 255, 0.18);
}

.mockups-hero-copy h1 {
  margin: 14px 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 820px;
}

.mockups-lead {
  margin: 0;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(232, 242, 248, 0.88);
}


.mockups-studio-shell {
  margin-top: 0;
}

.mockups-studio-grid {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.mockups-panel {
  border-radius: 28px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(13, 23, 33, 0.94), rgba(8, 15, 22, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mockups-panel-head h2 {
  margin: 14px 0 8px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.mockups-panel-head p {
  margin: 0 0 24px;
  color: rgba(232, 242, 248, 0.76);
  line-height: 1.7;
}

.mockups-control-block {
  margin-bottom: 20px;
}

.mockups-label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(232, 242, 248, 0.86);
  letter-spacing: 0.02em;
}

.mockups-upload {
  border-radius: 22px;
  padding: 22px;
  border: 1px dashed rgba(143, 216, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
  text-align: center;
}

.mockups-upload-btn,
.mockups-generate-btn,
.mockup-download-btn {
  appearance: none;
  border: none;
  outline: none;
  cursor: pointer;
  transition: 0.18s ease;
}

.mockups-upload-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5fbff;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.mockups-upload-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.mockups-upload-text {
  margin: 12px 0 6px;
  font-size: 13px;
  color: rgba(232, 242, 248, 0.68);
}

.mockups-upload-filename {
  min-height: 20px;
  margin-top: 10px;
  font-size: 13px;
  color: #9fe4ff;
  word-break: break-word;
}

.mockups-select {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  padding: 0 44px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
  color: #f5fbff;
  font-size: 14px;
  font-weight: 600;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.72)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 14px center;
  background-size: auto, 16px;
}

.mockups-select:hover {
  border-color: rgba(143, 216, 255, 0.22);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.85)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
}

.mockups-select:focus {
  outline: none;
  border-color: rgba(143, 216, 255, 0.38);
  box-shadow:
    0 0 0 3px rgba(143, 216, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.16);
}

.mockups-actions {
  margin-top: 26px;
}

.mockups-generate-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #12b6ff, #24d2a8);
  color: #041017;
  box-shadow: 0 16px 32px rgba(18, 182, 255, 0.22);
}

.mockups-generate-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.mockups-status {
  margin-top: 16px;
  min-height: 22px;
  font-size: 13px;
  color: rgba(232, 242, 248, 0.72);
}

.mockups-preview-stage {
  min-height: 520px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  padding: 18px;
}

.mockups-empty-state {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(232, 242, 248, 0.76);
}

.mockups-empty-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 14px;
  font-size: 26px;
  background: rgba(255, 255, 255, 0.06);
  color: #9fe4ff;
}

.mockups-empty-state h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.mockups-empty-state p {
  margin: 0;
  max-width: 420px;
  line-height: 1.7;
}

.mockups-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mockups-results-grid.hidden,
.mockups-empty-state.hidden {
  display: none;
}

.mockup-result-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mockup-result-image-wrap {
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-result-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.02);
}

.mockup-result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.mockup-result-title {
  font-size: 14px;
  font-weight: 700;
  color: #eef6fb;
}

.mockup-download-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: #f5fbff;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.mockup-download-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1120px) {
  .mockups-hero-inner,
  .mockups-studio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .mockups-page {
    padding: 96px 16px 28px;
  }

  .mockups-hero-inner,
  .mockups-panel {
    padding: 20px;
  }

  .mockups-results-grid {
    grid-template-columns: 1fr;
  }

  .mockups-hero-copy h1 {
    font-size: 34px;
  }
}

/* ===== MOCKUPS SCROLLBAR (tylko ta strona) ===== */

body.page-mockups::-webkit-scrollbar {
  width: 10px;
}

body.page-mockups::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

body.page-mockups::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #12b6ff, #24d2a8);
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.4);
}

body.page-mockups::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.1);
}

/* Firefox */
body.page-mockups {
  scrollbar-width: thin;
  scrollbar-color: #12b6ff rgba(255,255,255,0.05);
}
/* ===== ACTIVE NAV ITEM ===== */

.page-mockups .gb-seg-active {
  background: linear-gradient(135deg, rgba(18, 182, 255, 0.18), rgba(36, 210, 168, 0.18));
  color: #ffffff;
  border-color: rgba(143, 216, 255, 0.35);
  box-shadow: 0 6px 18px rgba(18, 182, 255, 0.18);
}

/* ===== FORCE ACTIVE NAV ON MOCKUPS PAGE ===== */

body.page-mockups #globalBanner #nav-mockups {
  color: #ffffff !important;
}
/* ===== FORCE PAGE SCROLLBAR ON MOCKUPS PAGE ===== */

html:has(body.page-mockups),
body.page-mockups {
  overflow-y: scroll;
}

body.page-mockups::-webkit-scrollbar {
  width: 10px;
}

body.page-mockups::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

body.page-mockups::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #12b6ff, #24d2a8);
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.4);
}

body.page-mockups::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.1);
}

body.page-mockups {
  scrollbar-width: thin;
  scrollbar-color: #12b6ff rgba(255,255,255,0.05);
}
.mockups-helper-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(232, 242, 248, 0.58);
}
.mockups-select option {
  background: #0f1922;
  color: #eef6fb;
}

/* ===== MOCKUPS NEW CONTROL LAYOUT ===== */

.mockups-control-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.mockups-category-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mockups-category-chip {
  min-height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  color: #eef6fb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: 0.18s ease;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mockups-category-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 216, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
}

.mockups-category-chip.is-active {
  border-color: rgba(143, 216, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(18, 182, 255, 0.14), rgba(36, 210, 168, 0.10));
  box-shadow:
    0 14px 30px rgba(18, 182, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mockups-category-icon {
  font-size: 22px;
  line-height: 1;
  color: #9fe4ff;
}

.mockups-category-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.mockups-product-animated-wrap {
  overflow: hidden;
}

.mockups-scene-type-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mockups-scene-type-chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: #eef6fb;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
}

.mockups-scene-type-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.mockups-scene-type-chip.is-active {
  background: linear-gradient(135deg, rgba(18, 182, 255, 0.16), rgba(36, 210, 168, 0.12));
  border-color: rgba(143, 216, 255, 0.28);
  color: #ffffff;
}

.mockups-scene-preset-animated-wrap {
  overflow: hidden;
}

.mockups-scene-preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  transform-origin: top;
}

.mockups-scene-preset-chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: #eef6fb;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
}

.mockups-scene-preset-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.mockups-scene-preset-chip.is-active {
  background: linear-gradient(135deg, rgba(18, 182, 255, 0.16), rgba(36, 210, 168, 0.12));
  border-color: rgba(143, 216, 255, 0.28);
  color: #ffffff;
}

.mockups-product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  transform-origin: top;
}

.mockups-color-animated-wrap {
  overflow: hidden;
}

.mockups-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  transform-origin: top;
}

.mockups-color-chip {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.18s ease;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mockups-color-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 216, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.mockups-color-chip.is-active {
  border-color: rgba(143, 216, 255, 0.34);
  box-shadow:
    0 12px 24px rgba(18, 182, 255, 0.14),
    0 0 0 2px rgba(143, 216, 255, 0.10);
}

.mockups-color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.mockups-product-chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: #eef6fb;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
}

.mockups-product-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.mockups-product-chip.is-active {
  background: linear-gradient(135deg, rgba(18, 182, 255, 0.16), rgba(36, 210, 168, 0.12));
  border-color: rgba(143, 216, 255, 0.28);
  color: #ffffff;
}

.mockups-textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  color: #eef6fb;
  font-size: 14px;
  line-height: 1.7;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mockups-textarea::placeholder {
  color: rgba(232, 242, 248, 0.46);
}

.mockups-textarea:focus {
  outline: none;
  border-color: rgba(143, 216, 255, 0.34);
  box-shadow:
    0 0 0 3px rgba(143, 216, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.16);
}

.mockups-prompt-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.mockups-prompt-example {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(238, 246, 251, 0.82);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s ease;
}

.mockups-prompt-example:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.mockups-upload-compact {
  text-align: left;
  padding: 14px;
  min-height: 52px;
}

.mockups-upload-compact .mockups-upload-btn {
  width: 100%;
  margin-bottom: 10px;
}

.mockups-upload-compact .mockups-upload-filename {
  min-height: 18px;
  font-size: 12px;
}

/* ===== DESIGN UPLOAD BOX ===== */
.mockups-upload-design {
  position: relative;
  min-height: 172px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.mockups-upload-design-trigger {
  width: 100%;
  min-height: 124px;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #eef6fb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: 0.18s ease;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mockups-upload-design-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 216, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
}

.mockups-upload-design-plus {
  font-size: 34px;
  line-height: 1;
  font-weight: 500;
  color: #9fe4ff;
}

.mockups-upload-design-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

.mockups-upload-design-note {
  max-width: 240px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(232, 242, 248, 0.62);
}

/* ===== PREVIEW AFTER UPLOAD ===== */
.mockups-upload-design-preview {
  position: relative;
  width: 100%;
  min-height: 124px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  cursor: pointer;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mockups-upload-design-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0);
  transition: background 0.18s ease;
  pointer-events: none;
}

.mockups-upload-design-preview:hover::after {
  background: rgba(0, 0, 0, 0.14);
}

.mockups-upload-design-preview-image {
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
  display: block;
}

/* ===== HOVER ENLARGED PREVIEW ===== */
.mockups-upload-design-hover-preview {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%) translateY(10px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  z-index: 30;

  width: 220px;
  min-height: 220px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #111822, #0b1118);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.mockups-upload-design-preview:hover .mockups-upload-design-hover-preview {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.mockups-upload-design-hover-image {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .mockups-control-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .mockups-category-switch {
    grid-template-columns: 1fr;
  }
}
/* ===== FORCE TWO-COLUMN MOCKUP LAYOUT ===== */

.mockups-studio-grid {
  display: grid;
  grid-template-columns: 560px minmax(0, 1fr);
  column-gap: 28px;
  align-items: stretch;
}

.mockups-controls-panel {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 560px;
  max-width: 560px;
  min-width: 560px;
  box-sizing: border-box;
}

.mockups-preview-panel {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  width: 100%;
}

.mockups-controls-panel * {
  box-sizing: border-box;
}

.mockups-category-switch {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mockups-category-chip {
  min-width: 0;
  width: 100%;
}

.mockups-textarea {
  width: 100%;
  max-width: 100%;
}

.mockups-prompt-examples {
  max-width: 100%;
}

.mockups-control-row {
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

@media (max-width: 1120px) {
  .mockups-studio-grid {
    grid-template-columns: 1fr;
  }

  .mockups-controls-panel,
  .mockups-preview-panel,
  .mockups-library-standalone {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}
/* ===== LIBRARY IN RIGHT COLUMN BELOW STEP 2 ===== */

.mockups-library-standalone {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  width: 100%;
}

.mockups-top-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(10, 22, 33, 0.92), rgba(13, 29, 43, 0.84)),
    rgba(8, 14, 21, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mockups-top-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 179, 255, 0.12), transparent 24%),
    radial-gradient(circle at 18% 78%, rgba(42, 210, 160, 0.08), transparent 22%);
}

.mockups-top-card > * {
  position: relative;
  z-index: 1;
}

.mockups-top-card-library .mockups-panel-head h2 {
  margin-top: 14px;
}

.mockups-library-placeholder {
  min-height: 220px;
  margin-top: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
}

.mockups-library-placeholder-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #9fe4ff;
}

.mockups-library-placeholder h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.15;
}

.mockups-library-placeholder p {
  margin: 0;
  max-width: 520px;
  line-height: 1.7;
  color: rgba(232, 242, 248, 0.76);
}

/* ===== BETTER BALANCE: LEFT STEP 1 vs RIGHT STEP 2 ===== */

.mockups-studio-grid {
  align-items: start;
}

.mockups-controls-panel {
  align-self: start;
}

.mockups-preview-panel {
  align-self: start;
}

@media (min-width: 1121px) {
  .mockups-controls-panel {
    position: sticky;
    top: 96px;
  }
}

@media (max-width: 1120px) {
  .mockups-controls-panel {
    position: static;
    top: auto;
  }
}

/* ===== MATCH LEFT PANEL HEIGHT & LOOK ===== */

.mockups-controls-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* wrapper wewnętrzny żeby rozciągnąć zawartość */
.mockups-controls-panel::after {
  content: "";
  flex-grow: 1;
}

/* przycisk na dole zawsze */
.mockups-actions {
  margin-top: auto;
}

/* ===== PROMPT HELP BUTTON ===== */
.mockups-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mockups-prompt-help-btn {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mockups-prompt-help-btn:hover {
  background: rgba(0, 200, 255, 0.08);
  border-color: rgba(0, 200, 255, 0.25);
  color: #fff;
}

/* ===== PROMPT ROW ===== */
.mockups-prompt-row {
  position: relative;
}

.mockups-prompt-left {
  min-width: 0;
}

/* ===== FLOATING PROMPT PANEL ===== */
.mockups-prompt-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  opacity: 0;
  transform: translateX(24px) scale(0.985);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  will-change: transform, opacity;
}

.mockups-prompt-panel.is-visible {
  opacity: 1 !important;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.mockups-prompt-panel-inner {
  position: relative;
  width: 600px;
  max-width: min(600px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 16px;
  overflow: hidden;

  background: none !important;
  background-image: none !important;
  opacity: 1 !important;

  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  isolation: isolate;
}

.mockups-prompt-panel-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #0b1118;
  opacity: 1;
  z-index: 0;
}

.mockups-prompt-panel-inner > * {
  position: relative;
  z-index: 1;
}

.mockups-prompt-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.mockups-prompt-popover-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  cursor: pointer;
}

.mockups-prompt-popover-close:hover {
  color: #fff;
}

.mockups-prompt-panel .mockups-prompt-examples {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.mockups-prompt-panel .mockups-prompt-example {
  display: inline-block;
  width: auto;
  max-width: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(238, 246, 251, 0.86);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.18s ease;
}

.mockups-prompt-panel .mockups-prompt-example:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* ===== HIDDEN ===== */
.hidden {
  display: none !important;
}


/* ===== PREVIEW FORMAT VIEWPORT ===== */
.mockups-preview-stage {
  position: relative;
  overflow: hidden;
}

.mockups-preview-format-viewport {
  position: absolute;
  inset: 18px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  pointer-events: none;
  z-index: 1;
}

.mockups-preview-format-grid {
  width: 100%;
  height: 100%;
  display: grid;
  gap: 18px;
  place-items: center;
  align-content: center;
  justify-content: center;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  transform-origin: center;
}

.mockups-preview-format-grid.is-reflowing {
  opacity: 0.88;
  transform: scale(0.985);
}

.mockups-preview-format-frame {
  position: relative;
  width: 280px;
  height: 280px;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: 18px;
  border: 2px dashed rgba(143, 216, 255, 0.55);
  background: rgba(18, 182, 255, 0.03);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 18px 40px rgba(0, 0, 0, 0.16);
  transition:
    width 0.28s ease,
    height 0.28s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.28s ease,
    opacity 0.2s ease;
}

.mockups-preview-format-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  border: 1px dashed rgba(143, 216, 255, 0.18);
}

.mockups-preview-format-frame {
  overflow: hidden;
}

.mockups-preview-frame-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  z-index: 1;
}

.mockups-preview-frame-actions {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  z-index: 3;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.mockups-preview-frame-action-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 16, 24, 0.78);
  color: #f5fbff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: 0.18s ease;
}

.mockups-preview-frame-action-btn:hover {
  transform: translateY(-1px);
  background: rgba(18, 182, 255, 0.16);
  border-color: rgba(143, 216, 255, 0.30);
}

.mockups-preview-frame-action-btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.mockups-preview-format-frame.has-image::before {
  opacity: 0;
}

.mockups-preview-format-frame.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  margin-left: -21px;
  margin-top: -21px;
  border-radius: 50%;
  border: 3px solid rgba(143, 216, 255, 0.18);
  border-top-color: rgba(143, 216, 255, 0.95);
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.025),
    0 12px 30px rgba(0, 0, 0, 0.18);
  animation: mockupFrameSpin 0.9s linear infinite;
  z-index: 3;
}

.mockups-preview-format-frame.is-loading {
  background: rgba(18, 182, 255, 0.05);
  border-color: rgba(143, 216, 255, 0.72);
}

.mockups-preview-format-frame.is-loading::before {
  border-color: rgba(143, 216, 255, 0.28);
}

@keyframes mockupFrameSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.mockups-empty-state {
  position: relative;
  z-index: 0;
  pointer-events: none;
  color: rgba(232, 242, 248, 0.52);
}

.mockups-empty-state h3 {
  color: rgba(232, 242, 248, 0.78);
}

.mockups-empty-state p {
  color: rgba(232, 242, 248, 0.46);
}

.mockups-results-grid {
  position: relative;
  z-index: 2;
}

/* ===== HARD SCROLL LOCK FOR MOCKUPS PAGE ===== */
html:has(body.page-mockups.body-no-scroll),
body.page-mockups.body-no-scroll {
  overflow: hidden !important;
}

/* ===== PREVIEW HEADER LAYOUT ===== */
.mockups-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 18px;
}

.mockups-preview-head-left {
  flex: 1;
  min-width: 0;
}

.mockups-preview-head-right {
  width: 380px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  box-sizing: border-box;
}

/* ===== GROUP BUTTONS ===== */
.mockups-resolution-groups {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.mockups-resolution-group-btn {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.mockups-resolution-group-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  transform: translateY(-1px);
}

.mockups-resolution-group-btn.is-active {
  background: linear-gradient(135deg, rgba(18,182,255,0.18), rgba(36,210,168,0.14));
  border-color: rgba(143,216,255,0.32);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(18,182,255,0.14);
}

/* ===== RESOLUTION OPTIONS ===== */
.mockups-resolution-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  min-height: 72px;
}

.mockups-resolution-option-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  padding: 9px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  color: rgba(255,255,255,0.72);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  box-sizing: border-box;
}

.mockups-resolution-option-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  transform: translateY(-1px);
}

.mockups-resolution-option-btn.is-active {
  background: linear-gradient(135deg, rgba(18,182,255,0.18), rgba(36,210,168,0.14));
  border-color: rgba(143,216,255,0.28);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(18,182,255,0.12);
}

/* ===== CUSTOM RESOLUTION PANEL ===== */
.mockups-resolution-custom-panel {
  display: flex;
  width: 100%;
}

.mockups-resolution-custom-fields {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
}

.mockups-resolution-custom-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 104px;
}

.mockups-resolution-custom-field span {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 0.02em;
}

.mockups-resolution-custom-input {
  width: 104px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #ffffff;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  box-sizing: border-box;
}

.mockups-resolution-custom-input:focus {
  border-color: rgba(143,216,255,0.28);
  box-shadow: 0 0 0 3px rgba(143,216,255,0.08);
}

.mockups-resolution-custom-input::placeholder {
  color: rgba(255,255,255,0.35);
}

.mockups-resolution-save-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(143,216,255,0.18);
  background: rgba(18,182,255,0.08);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.mockups-resolution-save-btn:hover {
  background: rgba(18,182,255,0.14);
  border-color: rgba(143,216,255,0.30);
  transform: translateY(-1px);
}

/* ===== RESOLUTION OPTION TEXT ===== */
.mockups-resolution-option-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  line-height: 1.2;
}

.mockups-resolution-option-size {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.56);
  line-height: 1.2;
}

@media (max-width: 1100px) {
  .mockups-preview-head {
    flex-direction: column;
    align-items: stretch;
  }

  .mockups-preview-head-right {
    width: 100%;
  }

  .mockups-resolution-groups,
  .mockups-resolution-options,
  .mockups-resolution-custom-fields {
    justify-content: flex-start;
  }
}
.mockups-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.mockups-preview-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 14, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.mockups-preview-modal-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 1100px);
  height: min(88vh, 900px);
  transform: translate(-50%, -50%) scale(0.96);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(10, 18, 27, 0.96), rgba(8, 14, 21, 0.96));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  overflow: hidden;
}

.mockups-preview-modal.is-visible .mockups-preview-modal-backdrop {
  opacity: 1;
}

.mockups-preview-modal.is-visible .mockups-preview-modal-dialog {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.mockups-preview-modal-image-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  box-sizing: border-box;
}

.mockups-preview-modal-image {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 18px;
}

.mockups-preview-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(8, 16, 24, 0.78);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: 0.18s ease;
}

.mockups-preview-modal-close:hover {
  transform: translateY(-1px);
  background: rgba(18, 182, 255, 0.16);
  border-color: rgba(143, 216, 255, 0.30);
}

.mockups-design-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.mockups-design-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 14, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.mockups-design-modal-dialog {
  position: absolute;
  top: 54%;
  left: 50%;
  width: min(94vw, 1220px);
  height: min(84vh, 800px);
  transform: translate(-50%, -50%) scale(0.96);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    linear-gradient(180deg, rgba(10, 18, 27, 0.97), rgba(8, 14, 21, 0.97));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.mockups-design-modal.is-visible .mockups-design-modal-backdrop {
  opacity: 1;
}

.mockups-design-modal.is-visible .mockups-design-modal-dialog {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.mockups-design-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mockups-design-modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockups-design-modal-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.mockups-design-modal-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(8, 16, 24, 0.78);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: 0.18s ease;
}

.mockups-design-modal-close:hover {
  transform: translateY(-1px);
  background: rgba(18, 182, 255, 0.16);
  border-color: rgba(143, 216, 255, 0.30);
}

.mockups-design-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  height: calc(100% - 162px);
  padding: 22px 24px 16px;
  box-sizing: border-box;
}

.mockups-design-workspace {
  min-width: 0;
  min-height: 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 34px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 34px;
  box-sizing: border-box;
  overflow: hidden;
}

.mockups-design-safe-area {
  position: relative;
  width: min(100%, 470px);
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1.18;
  border-radius: 22px;
  border: 2px dashed rgba(143, 216, 255, 0.48);
  background:
    linear-gradient(180deg, rgba(18, 182, 255, 0.04), rgba(36, 210, 168, 0.03));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.mockups-design-safe-area--tshirt {
  max-width: 470px;
  aspect-ratio: 1 / 1.18;
}

.mockups-design-safe-area--hoodie {
  max-width: 430px;
  aspect-ratio: 1 / 1.24;
}

.mockups-design-safe-area--longsleeve {
  max-width: 485px;
  aspect-ratio: 1 / 1.22;
}

.mockups-design-safe-area--tanktop {
  max-width: 440px;
  aspect-ratio: 1 / 1.10;
}

.mockups-design-safe-area--croptop {
  max-width: 430px;
  aspect-ratio: 1 / 0.92;
}

.mockups-design-safe-area::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 16px;
  border: 1px dashed rgba(143, 216, 255, 0.18);
  pointer-events: none;
}

.mockups-design-placement-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;

  top: 0;
  left: 0;

  transform-origin: center center;

  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
  touch-action: none;

  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.22));
}

.mockups-design-sidebar {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 34px rgba(0, 0, 0, 0.18);
  padding: 18px;
  box-sizing: border-box;
}

.mockups-design-sidebar-block + .mockups-design-sidebar-block {
  margin-top: 18px;
}

.mockups-design-range {
  width: calc(100% - 6px);
  margin-left: -6px;
  accent-color: #12b6ff;
  cursor: pointer;
}

.mockups-design-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 24px 20px;
  min-height: 64px;
  box-sizing: border-box;
}

.mockups-design-secondary-btn,
.mockups-design-primary-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
}

.mockups-design-secondary-btn {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: #eef6fb;
}

.mockups-design-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.mockups-design-primary-btn {
  border: none;
  background: linear-gradient(135deg, #12b6ff, #24d2a8);
  color: #041017;
  box-shadow: 0 12px 24px rgba(18, 182, 255, 0.18);
}

.mockups-design-primary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

@media (max-width: 980px) {
  .mockups-design-modal-body {
    grid-template-columns: 1fr;
  }

  .mockups-design-sidebar {
    min-height: auto;
  }
}

.mockups-design-adjust-btn {
  margin-top: 10px;
  width: 100%;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(143, 216, 255, 0.25);
  background: rgba(18, 182, 255, 0.08);
  color: #dff5ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s ease;
}

.mockups-design-adjust-btn:hover {
  background: rgba(18, 182, 255, 0.18);
  transform: translateY(-1px);
}

.mockups-design-center-actions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: 14px;
}

.mockups-design-icon-btn {
  flex: 0 0 44px;
  min-width: 44px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  color: #eef6fb;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
}

.mockups-design-icon-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.mockups-design-safe-area::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;

  background: radial-gradient(
    ellipse at center,
    rgba(18, 182, 255, 0.08) 0%,
    rgba(18, 182, 255, 0.04) 40%,
    transparent 70%
  );
}

.mockups-design-print-guide {
  position: absolute;
  inset: 0;

  border-radius: 16px;

  border: 2px dashed rgba(255, 255, 255, 0.45);

  background: rgba(255, 255, 255, 0.02);

  pointer-events: none;
  z-index: 0;
}

/* === EDIT PLACEMENT MODAL === */

.mockups-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 78px 24px 24px;
}

.mockups-edit-modal.hidden {
  display: none;
}

.mockups-edit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 18, 0.78);
  backdrop-filter: blur(4px);
}

.mockups-edit-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(1180px, 94vw);
  height: min(86vh, 860px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid rgba(83, 187, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(10, 18, 36, 0.98), rgba(8, 14, 28, 0.98));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: translateY(14px) scale(0.985);
  opacity: 0;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

.mockups-edit-modal.is-visible .mockups-edit-modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.mockups-edit-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(83, 187, 255, 0.10);
}

.mockups-edit-modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mockups-edit-modal-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
  color: #f5fbff;
}

.mockups-edit-modal-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: #f5fbff;
  font-size: 1.4rem;
  line-height: 1;
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.mockups-edit-modal-close:hover {
  background: rgba(83, 187, 255, 0.16);
  transform: translateY(-1px);
}

.mockups-edit-modal-body {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0;
  overflow: hidden;
}

.mockups-edit-preview-wrap {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(9, 20, 40, 0.92), rgba(7, 15, 30, 0.96));
  overflow: hidden;
}

.mockups-edit-canvas-stage {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mockups-edit-preview-canvas {
  max-width: 100%;
  max-height: 100%;
  display: block;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  cursor: grab;
  touch-action: none;
}

.mockups-edit-preview-canvas.is-dragging {
  cursor: grabbing;
}

.mockups-edit-sidebar {
  min-width: 0;
  min-height: 0;
  padding: 22px 20px 18px;
  border-left: 1px solid rgba(83, 187, 255, 0.10);
  background: rgba(5, 14, 30, 0.72);
  overflow: hidden;
}

.mockups-edit-center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mockups-edit-sidebar-block + .mockups-edit-sidebar-block {
  margin-top: 18px;
}

.mockups-edit-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 20px 16px;
  border-top: 1px solid rgba(83, 187, 255, 0.10);
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .mockups-edit-modal {
    padding: 14px;
  }

  .mockups-edit-modal-dialog {
    width: min(100vw, 100%);
    max-height: 94vh;
  }

  .mockups-edit-modal-body {
    grid-template-columns: 1fr;
  }

  .mockups-edit-sidebar {
    border-left: 0;
    border-top: 1px solid rgba(83, 187, 255, 0.10);
  }
}

.mockups-edit-preview-wrap {
  position: relative;
}

.mockups-edit-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 14, 28, 0.58);
  backdrop-filter: blur(2px);
  border-radius: 18px;
}

.mockups-edit-loading-overlay.hidden {
  display: none;
}

.mockups-edit-loading-box {
  min-width: 180px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(10, 18, 36, 0.96);
  border: 1px solid rgba(83, 187, 255, 0.16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mockups-edit-loading-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(83, 187, 255, 0.18);
  border-top-color: rgba(83, 187, 255, 0.95);
  animation: mockupsEditSpin 0.85s linear infinite;
}

.mockups-edit-loading-text {
  font-size: 0.95rem;
  color: #eaf6ff;
  text-align: center;
}

@keyframes mockupsEditSpin {
  to {
    transform: rotate(360deg);
  }
}