/* ==========================================================================
   ComandaPrint.ro — produse personalizate
   Caiete & agende · calendare · mape
   ========================================================================== */

.pers-hero {
  position: relative;
  overflow: hidden;
  padding: 66px 0 74px;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.pers-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(22, 22, 21, 0.11) 0.7px, transparent 0.7px);
  background-size: 23px 23px;
  mask-image: linear-gradient(90deg, transparent 34%, #000 80%);
  opacity: 0.34;
  pointer-events: none;
}
.pers-hero::after {
  content: "Aa";
  position: absolute;
  right: -34px;
  bottom: -102px;
  font-family: var(--font-display);
  font-size: 330px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.1em;
  color: rgba(22, 22, 21, 0.035);
  pointer-events: none;
}
.pers-hero .container { position: relative; z-index: 1; }
.pers-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 50px;
}
.pers-hero .eyebrow { color: var(--ink-3); }
.pers-hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(52px, 6.6vw, 92px);
  line-height: 0.91;
  letter-spacing: -0.062em;
}
.pers-hero h1 em {
  font-style: normal;
  color: var(--red);
}
.pers-hero h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--ink);
}
.pers-hero-lead {
  max-width: 550px;
  margin-bottom: 28px;
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1.65;
}
.pers-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
}
.pers-hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.45);
  color: var(--ink-3);
  font-size: 10px;
}
.pers-hero-points .icon { width: 12px; height: 12px; color: var(--red); }

/* Hero composition */
.pers-hero-stage {
  position: relative;
  min-height: 390px;
}
.pers-hero-orbit {
  position: absolute;
  width: 380px;
  height: 380px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(22, 22, 21, 0.12);
  border-radius: 50%;
}
.pers-hero-orbit::before {
  content: "";
  position: absolute;
  inset: 31px;
  border: 1px dashed rgba(22, 22, 21, 0.12);
  border-radius: 50%;
}
.pers-hero-product {
  position: absolute;
  left: 50%;
  top: 50%;
  box-shadow: 0 34px 60px rgba(22, 22, 21, 0.18);
  transition: transform 0.4s var(--ease);
}
.pers-hero-product:hover { transform: translate(-50%, -50%) rotate(0deg) scale(1.03); }
.pers-hero-notebook {
  width: 190px;
  height: 260px;
  transform: translate(-70%, -54%) rotate(-8deg);
  background: linear-gradient(145deg, #fffdf8 0%, #ece6db 100%);
  border-radius: 3px 8px 8px 3px;
  z-index: 3;
  border-left: 9px solid #d9d3c8;
  overflow: hidden;
}
.pers-hero-notebook::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 0;
  width: 9px;
  height: 100%;
  background: repeating-linear-gradient(180deg, #171717 0 4px, transparent 4px 18px);
  opacity: 0.7;
}
.pers-hero-notebook::after {
  content: "";
  position: absolute;
  right: -28px;
  top: 30px;
  width: 140px;
  height: 140px;
  border: 16px solid var(--red);
  border-radius: 50%;
  opacity: 0.9;
}
.pers-hero-notebook .ph-logo { position: absolute; left: 20px; top: 24px; width: 82px; opacity: 0.75; z-index: 1; }
.pers-hero-notebook .ph-label { position: absolute; left: 20px; bottom: 24px; z-index: 1; color: #262623; font-family: var(--font-display); font-size: 20px; line-height: 1; letter-spacing: -0.04em; }
.pers-hero-notebook .ph-label span { color: var(--red); }
.pers-hero-calendar {
  width: 194px;
  height: 238px;
  transform: translate(-13%, -50%) rotate(6deg);
  background: #f7f3ea;
  border-radius: 5px;
  z-index: 2;
  padding: 27px 13px 13px;
}
.pers-hero-calendar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(90deg, #171717 0 6px, transparent 6px 14px);
}
.pers-hero-calendar .cal-photo { height: 104px; background: linear-gradient(135deg, #8e8e88 0%, #444440 100%); border-radius: 2px; margin-bottom: 10px; position: relative; overflow: hidden; }
.pers-hero-calendar .cal-photo::after { content: "12 LUNI"; position: absolute; left: 8px; bottom: 6px; color: rgba(255,255,255,.7); font-size: 7px; letter-spacing: .12em; }
.pers-hero-calendar .cal-month { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.03em; margin-bottom: 7px; }
.pers-hero-calendar .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.pers-hero-calendar .cal-grid i { display: block; height: 3px; background: #d8d2c6; }
.pers-hero-calendar .cal-grid i:nth-child(7n+6), .pers-hero-calendar .cal-grid i:nth-child(7n) { background: #e7b7ba; }
.pers-hero-folder {
  width: 232px;
  height: 152px;
  transform: translate(-36%, 48%) rotate(3deg);
  background: var(--red);
  border-radius: 4px 9px 9px 4px;
  z-index: 1;
  overflow: hidden;
}
.pers-hero-folder::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(0, 0, 0, 0.18);
}
.pers-hero-folder::after {
  content: "310 × 440";
  position: absolute;
  right: 13px;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 8px;
  letter-spacing: 0.08em;
}
.pers-hero-folder .folder-word {
  position: absolute;
  left: 23px;
  top: 47px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
}
.pers-hero-folder .folder-icon { position: absolute; right: 17px; top: 17px; width: 26px; height: 26px; color: rgba(255,255,255,.5); }
.pers-hero-float {
  position: absolute;
  right: 0;
  top: 45px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.82);
  backdrop-filter: blur(10px);
  color: var(--ink-3);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pers-hero-float::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #72dda6; box-shadow: 0 0 0 3px rgba(114, 221, 166, 0.16); }

/* --------------------------------------------------------------------------
   Product switch
   -------------------------------------------------------------------------- */

.pers-page { padding: 34px 0 100px; background: var(--paper); }
.pers-product-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.pers-product-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  text-align: left;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.25s var(--ease);
}
.pers-product-btn:hover { border-color: var(--red); transform: translateY(-1px); }
.pers-product-btn .ps-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--red-soft);
  color: var(--red);
  transition: background 0.2s, color 0.2s;
}
.pers-product-btn .ps-icon .icon { width: 21px; height: 21px; }
.pers-product-btn .ps-copy { min-width: 0; }
.pers-product-btn strong { display: block; margin-bottom: 2px; font-family: var(--font-display); font-size: 14px; letter-spacing: -0.02em; }
.pers-product-btn small { display: block; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.pers-product-btn .ps-price { margin-left: auto; color: var(--ink-3); font-size: 10px; white-space: nowrap; }
.pers-product-btn .ps-price strong { display: block; color: var(--ink); font-family: var(--font-body); font-size: 11px; letter-spacing: 0; }
.pers-product-btn.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.pers-product-btn.is-active .ps-icon { background: rgba(255, 255, 255, 0.16); color: #fff; }
.pers-product-btn.is-active small { color: rgba(255, 255, 255, 0.72); }
.pers-product-btn.is-active .ps-price, .pers-product-btn.is-active .ps-price strong { color: rgba(255, 255, 255, 0.78); }

/* --------------------------------------------------------------------------
   Builder layout
   -------------------------------------------------------------------------- */

.pers-layout {
  display: grid;
  grid-template-columns: 306px minmax(0, 1fr) 326px;
  align-items: start;
  gap: 16px;
}
.pers-settings { display: grid; gap: 10px; min-width: 0; }
.pers-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--white);
}
.pers-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 17px;
}
.pers-card-head h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -0.04em; }
.pers-card-head p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.pers-card-head .step-tag {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
}
.pers-field { margin-bottom: 18px; }
.pers-field:last-child { margin-bottom: 0; }
.pers-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
}
.pers-label small { color: var(--muted); font-size: 8px; font-weight: 400; }
.pers-options { display: grid; gap: 6px; }
.pers-options.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pers-options.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pers-options.cols-4 { grid-template-columns: repeat(4, 1fr); }
.pers-radio { position: absolute; opacity: 0; pointer-events: none; }
.pers-option {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 57px;
  padding: 9px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.pers-option:hover { border-color: #b8b0a2; transform: translateY(-1px); }
.pers-option strong { display: block; font-size: 10.5px; line-height: 1.2; }
.pers-option small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.25; }
.pers-radio:checked + .pers-option {
  border-color: var(--red);
  background: var(--red-soft);
  box-shadow: inset 0 0 0 1px var(--red);
}
.pers-radio:checked + .pers-option strong { color: var(--red-deep); }
.pers-radio:checked + .pers-option::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}
.pers-radio:focus-visible + .pers-option { outline: 2px solid var(--red); outline-offset: 2px; }
.pers-option.rich { align-items: flex-start; text-align: left; padding: 10px 24px 10px 10px; min-height: 66px; }
.pers-option.rich .po-icon { margin-bottom: 5px; color: var(--ink-3); }
.pers-option.rich .po-icon .icon { width: 16px; height: 16px; }
.pers-option.rich strong { font-size: 10.5px; }
.pers-option.rich small { font-size: 8px; }
.pers-radio:checked + .pers-option.rich .po-icon { color: var(--red); }
.pers-option .po-price { position: absolute; right: 9px; bottom: 8px; font-size: 8px; font-weight: 600; color: var(--muted); }
.pers-radio:checked + .pers-option .po-price { color: var(--red-deep); }

.pers-swatches { display: flex; gap: 9px; align-items: center; }
.pers-swatch { position: relative; cursor: pointer; }
.pers-swatch input { position: absolute; opacity: 0; }
.pers-swatch span {
  display: block;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(22, 22, 21, 0.15);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
  transition: box-shadow 0.2s, transform 0.2s;
}
.pers-swatch:hover span { transform: scale(1.08); }
.pers-swatch input:checked + span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red); }
.pers-swatch small { display: block; margin-top: 5px; color: var(--muted); font-size: 7px; text-align: center; }

/* Uploads */
.pers-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.pers-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 122px;
  aspect-ratio: 0.77;
  padding: 10px;
  overflow: hidden;
  border: 1px dashed #c8c0b1;
  border-radius: 9px;
  background: var(--paper);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.pers-upload:hover { border-color: var(--red); background: #fdf8f2; }
.pers-upload .up-icon { width: 29px; height: 29px; display: grid; place-items: center; margin-bottom: 7px; border-radius: 50%; background: var(--ink); color: #fff; }
.pers-upload .up-icon .icon { width: 13px; height: 13px; }
.pers-upload strong { display: block; font-size: 9px; line-height: 1.2; }
.pers-upload small { display: block; margin-top: 3px; color: var(--muted); font-size: 7px; line-height: 1.3; }
.pers-upload img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pers-upload .up-overlay { position: absolute; inset: auto 0 0; display: none; align-items: center; justify-content: space-between; padding: 6px 8px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-size: 7px; }
.pers-upload.has-image .up-overlay { display: flex; }
.pers-upload .up-remove { position: absolute; top: 5px; right: 5px; z-index: 2; width: 21px; height: 21px; display: none; place-items: center; border: 0; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; }
.pers-upload .up-remove .icon { width: 10px; height: 10px; }
.pers-upload.has-image { border-style: solid; border-color: var(--line); aspect-ratio: 0.77; }
.pers-upload.has-image .up-remove { display: grid; }
.pers-upload.has-image .up-icon, .pers-upload.has-image strong, .pers-upload.has-image small { display: none; }
.pers-upload.wide { aspect-ratio: 0.705; min-height: 150px; }
.pers-upload.wide.has-image { aspect-ratio: 0.705; }
.pers-upload.has-error { border-color: var(--red); background: var(--red-soft); }

.pers-photo-section { margin-top: 4px; }
.pers-photos-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pers-photos-head span { color: var(--muted); font-size: 8px; }
.pers-photos-head strong { color: var(--ink); font-size: 9px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.photo-slot {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px dashed #c8c0b1;
  border-radius: 6px;
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.photo-slot:hover { border-color: var(--red); background: #fdf8f2; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .slot-plus { position: absolute; inset: 0; display: grid; place-items: center; color: #b7b0a5; }
.photo-slot .slot-plus .icon { width: 15px; height: 15px; }
.photo-slot .slot-month { position: absolute; left: 4px; bottom: 4px; z-index: 1; padding: 2px 4px; border-radius: 3px; background: rgba(0,0,0,.65); color: #fff; font-size: 6px; font-weight: 700; letter-spacing: .06em; }
.photo-slot .slot-remove { position: absolute; top: 3px; right: 3px; z-index: 1; width: 16px; height: 16px; display: none; place-items: center; border: 0; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; }
.photo-slot .slot-remove .icon { width: 8px; height: 8px; }
.photo-slot.has-image .slot-remove { display: grid; }
.photo-slot.has-image { border-style: solid; border-color: var(--line); }
.bulk-upload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 34px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 9px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}
.bulk-upload-btn:hover { background: var(--paper); border-color: #b8b0a2; }
.bulk-upload-btn .icon { width: 13px; height: 13px; }

.pers-copies { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pers-copies-notes { display: grid; gap: 2px; text-align: right; color: var(--muted); font-size: 8px; }
.pers-copies .counter button { width: 34px; height: 38px; }
.pers-copies .counter input { width: 40px; height: 38px; font-size: 13px; }
.pers-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 12px;
  border: 1px solid #d9d2c3;
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.5;
}
.pers-note .icon { width: 12px; height: 12px; margin-top: 1px; flex: 0 0 auto; color: var(--red); }

/* Preview */
.pers-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #e9e3d7;
  min-height: 638px;
  display: flex;
  flex-direction: column;
}
.pers-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(22, 22, 21, 0.1);
  background: rgba(255, 253, 249, 0.62);
  backdrop-filter: blur(10px);
}
.pers-preview-head h2 { margin: 0 0 3px; font-size: 13px; letter-spacing: -0.015em; }
.pers-preview-head small { display: block; color: var(--muted); font-size: 8px; }
.pers-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(22, 22, 21, 0.09);
  border-radius: 99px;
  background: #fff;
  color: var(--green);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pers-live::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
.preview-stage {
  position: relative;
  flex: 1;
  min-height: 470px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(255,255,255,.8) 0 18%, transparent 62%),
    radial-gradient(rgba(22, 22, 21, 0.13) 0.7px, transparent 0.7px) 0 0 / 19px 19px,
    linear-gradient(145deg, #ede8dd 0%, #e3dccf 100%);
}
.preview-stage::before {
  content: "PREVIZUALIZARE 3D";
  position: absolute;
  top: 17px;
  left: 18px;
  z-index: 1;
  color: rgba(22, 22, 21, 0.32);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.17em;
}
.preview-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 43px;
  width: 58%;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(22, 22, 21, 0.16);
  filter: blur(14px);
  pointer-events: none;
}
#preview3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
#preview3d:active { cursor: grabbing; }
.preview-rotate-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 99px;
  background: rgba(255, 253, 249, 0.7);
  color: var(--muted);
  font-size: 7px;
  white-space: nowrap;
  backdrop-filter: blur(5px);
}
.preview-rotate-hint .icon { width: 10px; height: 10px; }
.preview-controls {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(22, 22, 21, 0.09);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.82);
  backdrop-filter: blur(7px);
}
.preview-controls button {
  min-width: 36px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink-3);
  font-size: 8px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.preview-controls button:hover { background: var(--ink); color: #fff; }
.preview-controls button .icon { width: 12px; height: 12px; }
.preview-fallback {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 36px;
  background: #ebe5d9;
}
.preview-fallback.is-visible { display: flex; }
.fallback-scene { position: relative; width: min(390px, 85%); aspect-ratio: 0.75; }
.fallback-scene img { position: absolute; width: 58%; border-radius: 3px; box-shadow: 0 18px 40px rgba(22,22,21,.25); object-fit: cover; }
.fallback-scene .fb-front { left: 7%; top: 7%; transform: rotate(-5deg); z-index: 2; }
.fallback-scene .fb-back { right: 7%; top: 22%; transform: rotate(5deg); opacity: .85; }
.fallback-scene .fb-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #9d978c; }
.fallback-msg { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); color: var(--muted); font-size: 8px; }

.calendar-months {
  display: flex;
  gap: 4px;
  padding: 9px 12px;
  border-top: 1px solid rgba(22,22,21,.1);
  background: rgba(255, 253, 249, 0.7);
  overflow-x: auto;
  scrollbar-width: none;
}
.calendar-months::-webkit-scrollbar { display: none; }
.calendar-month-btn {
  flex: 1 0 34px;
  min-height: 27px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.calendar-month-btn:hover { border-color: var(--line); background: #fff; }
.calendar-month-btn.is-active { background: var(--red); color: #fff; }
.calendar-months-wrap { display: none; }
.calendar-months-wrap.is-visible { display: block; }

.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  border-top: 1px solid rgba(22,22,21,.1);
  background: rgba(255, 253, 249, 0.66);
}
.preview-footer span { color: var(--muted); font-size: 8px; }
.preview-footer strong { font-size: 9px; font-weight: 600; }
.preview-footer .icon { width: 11px; height: 11px; color: var(--red); vertical-align: -1px; }

/* Summary */
.pers-summary {
  position: sticky;
  top: 86px;
  overflow: hidden;
  border-radius: 19px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 18px 50px rgba(22, 22, 21, 0.13);
}
.pers-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 19px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}
.pers-summary-head h2 { margin: 0; font-size: 13px; }
.pers-summary-head span { color: rgba(255,255,255,.35); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.pers-summary-product { display: flex; align-items: center; gap: 11px; padding: 17px 19px 0; }
.pers-summary-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: #fff;
}
.pers-summary-icon .icon { width: 20px; height: 20px; }
.pers-summary-product strong { display: block; font-size: 11px; }
.pers-summary-product small { display: block; margin-top: 2px; color: rgba(255,255,255,.4); font-size: 8px; }
.pers-summary-body { padding: 14px 19px 18px; }
.pers-summary-list { display: grid; gap: 7px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.pers-summary-row { display: flex; justify-content: space-between; gap: 14px; font-size: 9px; line-height: 1.35; }
.pers-summary-row span { color: rgba(255,255,255,.4); }
.pers-summary-row strong { max-width: 180px; text-align: right; font-weight: 500; color: rgba(255,255,255,.9); }
.pers-price-lines { display: grid; gap: 7px; padding: 14px 0; }
.pers-price-line { display: flex; justify-content: space-between; gap: 10px; font-size: 9px; }
.pers-price-line span { color: rgba(255,255,255,.42); }
.pers-price-line strong { font-weight: 500; }
.pers-unit { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 9px; }
.pers-unit span { color: rgba(255,255,255,.42); }
.pers-unit strong { font-weight: 500; color: #fff; }
.pers-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.16); }
.pers-total small { display: block; margin-bottom: 2px; color: rgba(255,255,255,.4); font-size: 8px; }
.pers-total strong { font-family: var(--font-display); font-size: 27px; line-height: 1; letter-spacing: -0.05em; }
.pers-total span { color: rgba(255,255,255,.3); font-size: 7px; }
.pers-summary-cta { padding: 0 19px 16px; }
.pers-summary-cta .btn { width: 100%; min-height: 45px; font-size: 12px; }
.pers-summary-note { display: flex; gap: 7px; padding: 12px 19px 16px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.32); font-size: 8px; line-height: 1.45; }
.pers-summary-note .icon { width: 11px; height: 11px; margin-top: 1px; flex: 0 0 auto; }
.pers-summary-support { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 19px 16px; color: rgba(255,255,255,.34); font-size: 8px; }
.pers-summary-support .icon { width: 11px; height: 11px; }

.pers-mobile-bar { display: none; }
.pers-mobile-bar .pm-unit { display: none; }

/* Process strip */
.pers-process { padding: 0 0 70px; background: #f8f5ef; }
.pers-process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pers-process-card { display: flex; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.pers-process-card .pp-num { font-family: var(--font-display); font-size: 10px; font-weight: 700; color: var(--red); }
.pers-process-card h3 { margin-bottom: 5px; font-size: 16px; letter-spacing: -0.03em; }
.pers-process-card p { margin: 0; color: var(--ink-3); font-size: 10px; line-height: 1.55; }

/* Checkout modal */
.pers-checkout-modal { width: min(650px, 100%); }
.pers-checkout-modal .modal-body { padding-bottom: 25px; }
.pers-checkout-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}
.pers-checkout-summary span { color: var(--muted); font-size: 10px; }
.pers-checkout-summary strong { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.03em; }
.checkout-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-two .full { grid-column: 1 / -1; }
.pers-checkout-modal .form-section-title { margin-top: 20px; }
.pers-checkout-modal .form-section-title:first-of-type { margin-top: 0; }
.modal-loading { display: none; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 10px; }
.modal-loading.is-visible { display: flex; }

/* Success */
.pers-success { display: none; padding: 34px 0 84px; }
.pers-success.is-visible { display: block; animation: panelIn 0.4s var(--ease); }
.pers-success-card {
  position: relative;
  overflow: hidden;
  padding: 46px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--paper);
}
.pers-success-card::after {
  content: "✓";
  position: absolute;
  right: 31px;
  top: 4px;
  font-family: var(--font-display);
  font-size: 230px;
  line-height: 1;
  font-weight: 700;
  color: rgba(255,255,255,.035);
}
.pers-success-icon {
  width: 59px;
  height: 59px;
  display: grid;
  place-items: center;
  margin-bottom: 23px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 0 8px rgba(227,6,19,.18);
}
.pers-success-icon .icon { width: 27px; height: 27px; }
.pers-success-card h2 { margin-bottom: 12px; font-size: 43px; letter-spacing: -0.05em; }
.pers-success-card > p { max-width: 590px; margin-bottom: 22px; color: rgba(255,255,255,.55); font-size: 13px; }
.pers-success-id { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.04); }
.pers-success-id span { color: rgba(255,255,255,.35); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.pers-success-id strong { font-family: var(--font-display); font-size: 15px; }
.pers-success-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 25px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); }
.pers-success-meta span { display: block; margin-bottom: 3px; color: rgba(255,255,255,.32); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.pers-success-meta strong { font-size: 12px; font-weight: 500; }
.pers-success-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 27px; }
.pers-success-actions .btn { min-height: 43px; font-size: 11px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .pers-layout { grid-template-columns: 286px minmax(0, 1fr) 300px; }
  .pers-preview { min-height: 600px; }
  .preview-stage { min-height: 430px; }
  .pers-hero-stage { transform: scale(0.9); transform-origin: center; }
}

@media (max-width: 1040px) {
  .pers-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .pers-hero-stage { display: none; }
  .pers-hero h1 { max-width: 760px; }
  .pers-layout { grid-template-columns: 280px minmax(0, 1fr); }
  .pers-summary { position: static; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .pers-summary-head { grid-column: 1 / -1; }
  .pers-summary-product { padding-bottom: 15px; }
  .pers-summary-body { padding-top: 15px; border-left: 1px solid rgba(255,255,255,.1); }
  .pers-summary-cta { grid-column: 1 / -1; padding-top: 4px; }
  .pers-summary-note { grid-column: 1 / -1; }
  .pers-summary-support { display: none; }
  .pers-preview { min-height: 620px; }
  .preview-stage { min-height: 430px; }
}

@media (max-width: 780px) {
  .pers-page { padding-top: 22px; }
  .pers-product-switch { grid-template-columns: 1fr; gap: 7px; }
  .pers-product-btn { min-height: 65px; padding: 10px 12px; }
  .pers-product-btn .ps-icon { width: 36px; height: 36px; }
  .pers-product-btn small { white-space: normal; }
  .pers-layout { grid-template-columns: 1fr; gap: 12px; }
  .pers-preview { order: -1; min-height: 500px; }
  .preview-stage { min-height: 345px; }
  .pers-settings { grid-template-columns: 1fr; }
  .pers-summary { grid-template-columns: 1fr; }
  .pers-summary-body { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .pers-summary-product { padding-bottom: 0; }
  .pers-summary-cta .btn { min-height: 48px; }
  .pers-process-grid { grid-template-columns: 1fr; }
  .pers-process { padding-bottom: 42px; }
  .pers-mobile-bar {
    position: fixed;
    z-index: 45;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px 9px 16px;
    border-radius: 13px;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 12px 38px rgba(0,0,0,.28);
  }
  .pers-mobile-bar .pm-total { flex: 1; }
  .pers-mobile-bar .pm-unit { display: block; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.14); text-align: right; }
  .pers-mobile-bar .pm-unit strong { font-size: 14px; }
  .pers-mobile-bar small { display: block; color: rgba(255,255,255,.4); font-size: 8px; }
  .pers-mobile-bar strong { font-family: var(--font-display); font-size: 17px; letter-spacing: -.03em; }
  .pers-mobile-bar .btn { min-height: 42px; padding-inline: 16px; font-size: 10px; }
  .pers-success-card { padding: 30px 22px; }
  .pers-success-card h2 { font-size: 34px; }
  .pers-success-meta { grid-template-columns: 1fr 1fr; }
  .pers-success-actions .btn { width: 100%; }
  .checkout-two { grid-template-columns: 1fr; }
  .pers-checkout-modal .modal-head { padding-bottom: 12px; }
  .pers-checkout-modal .form-section-title { margin-top: 17px; }
}

@media (max-width: 420px) {
  .pers-hero { padding: 44px 0 48px; }
  .pers-hero h1 { font-size: 45px; }
  .pers-hero-lead { font-size: 13px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .pers-preview { min-height: 450px; }
  .preview-stage { min-height: 300px; }
  .pers-card { padding: 15px; }
  .pers-upload { aspect-ratio: 0.82; }
  .pers-upload-grid { gap: 6px; }
}

@media (max-width: 1040px) {
  .main-nav { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .menu-toggle { display: inline-flex; }
}

.photo-grid.single { grid-template-columns: 1fr; }
.photo-grid.single .photo-slot { width: 64%; margin: 0 auto; aspect-ratio: 0.68; }

/* Mini previzualizări pentru tipul interiorului */
.interior-option {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 8px;
  text-align: left;
}
.interior-copy { min-width: 0; }
.interior-copy strong { font-size: 10.5px; }
.interior-copy small { font-size: 8px; }
.interior-preview {
  position: relative;
  width: 26px;
  height: 35px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fffdf9;
}
.interior-preview::after {
  content: "";
  position: absolute;
  inset: 5px 4px;
}
.preview-lines::after {
  background: repeating-linear-gradient(180deg, transparent 0 4px, #c9c4b9 4px 5px);
}
.preview-dots::after {
  background-image: radial-gradient(#bdb7ab 1px, transparent 1px);
  background-size: 5px 5px;
}
.preview-grid::after {
  background-image: linear-gradient(#c9c4b9 1px, transparent 1px), linear-gradient(90deg, #c9c4b9 1px, transparent 1px);
  background-size: 6px 6px;
}
.preview-agenda::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 5px;
  height: 4px;
  border-radius: 1px;
  background: var(--red);
}
.preview-agenda::after {
  inset: 13px 4px 4px;
  background:
    repeating-linear-gradient(180deg, transparent 0 4px, #c9c4b9 4px 5px),
    linear-gradient(90deg, transparent 0 8px, #e4ded3 8px 9px, transparent 9px);
}
.pers-price-line.is-discount span,
.pers-price-line.is-discount strong { color: #72dda6; }
/* Machete calendar */
.template-option {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 7px;
  text-align: left;
}
.template-copy { min-width: 0; }
.template-copy strong { font-size: 10.5px; }
.template-copy small { font-size: 7.5px; line-height: 1.25; }
.template-preview {
  position: relative;
  width: 27px;
  height: 36px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fffdf9;
}
.template-preview i, .template-preview b, .template-preview em { position: absolute; display: block; }
.tp-clasic i { left: 0; top: 0; right: 0; height: 6px; background: var(--ink); }
.tp-clasic b { left: 3px; right: 3px; top: 8px; height: 15px; background: #d8d3c8; }
.tp-clasic em { left: 3px; right: 3px; bottom: 3px; height: 9px; background: repeating-linear-gradient(90deg, #ccc6bb 0 1px, transparent 1px 4px), repeating-linear-gradient(180deg, #ccc6bb 0 1px, transparent 1px 3px); }
.tp-banda i { left: 0; top: 0; right: 0; height: 5px; background: var(--red); }
.tp-banda b { left: 3px; right: 3px; top: 7px; height: 7px; background: repeating-linear-gradient(90deg, #b9b2a6 0 5px, transparent 5px 7px); }
.tp-banda em { left: 3px; right: 3px; top: 16px; bottom: 3px; background: #d8d3c8; }
.tp-full i { left: 0; top: 0; right: 0; bottom: 10px; background: #353532; }
.tp-full b { left: 3px; bottom: 2px; right: 3px; height: 9px; background: #fffdf9; border-top: 1px solid var(--red); }
.tp-full em { left: 4px; top: 3px; width: 7px; height: 3px; background: var(--red); }
.tp-editorial i { left: 3px; top: 3px; width: 8px; height: 3px; background: var(--red); }
.tp-editorial b { left: 3px; top: 8px; width: 15px; height: 14px; background: #d8d3c8; }
.tp-editorial em { right: 3px; top: 8px; width: 5px; bottom: 11px; background: repeating-linear-gradient(180deg, #ccc6bb 0 1px, transparent 1px 3px); }
.brand-block { display: grid; gap: 10px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.brand-block .pers-field { margin: 0; }
.pers-text-input {
  width: 100%;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 10px;
}
.pers-text-input:focus { outline: 2px solid rgba(227,6,19,.18); border-color: var(--red); }
.brand-logo-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 7px;
  border: 1px dashed #c9c1b3;
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  overflow: hidden;
}
.brand-logo-upload:hover { border-color: var(--red); color: var(--red); }
.brand-logo-upload.has-image { border-style: solid; background: #fff; }
.brand-logo-upload img { display: block; max-width: 100%; max-height: 38px; object-fit: contain; }
.brand-logo-empty { display: flex; align-items: center; gap: 6px; font-size: 9px; }
.brand-logo-empty .icon { width: 14px; height: 14px; }
.tp-original i { left: 3px; right: 3px; top: 3px; height: 15px; background: #d8d3c8; }
.tp-original b { left: 3px; right: 3px; top: 20px; height: 10px; background: repeating-linear-gradient(90deg, #ccc6bb 0 1px, transparent 1px 4px), repeating-linear-gradient(180deg, #ccc6bb 0 1px, transparent 1px 3px); }
.tp-original em { left: 3px; right: 3px; bottom: 3px; height: 3px; background: var(--red); }
.tp-clapa i { left: 0; top: 0; right: 0; height: 6px; background: var(--ink); }
.tp-clapa b { left: 3px; right: 3px; top: 8px; height: 6px; background: repeating-linear-gradient(90deg, #b9b2a6 0 5px, transparent 5px 7px); }
.tp-clapa em { left: 3px; right: 3px; top: 16px; bottom: 3px; background: #d8d3c8; }
.tp-zile i { left: 0; top: 0; right: 0; bottom: 10px; background: #353532; }
.tp-zile b { left: 3px; top: 3px; width: 7px; height: 3px; background: var(--red); }
.tp-zile em { left: 3px; right: 3px; bottom: 2px; height: 8px; background: repeating-linear-gradient(90deg, var(--red) 0 1px, transparent 1px 3px), repeating-linear-gradient(180deg, var(--red) 0 1px, transparent 1px 3px); opacity: .65; }
.tp-dublu i { left: 3px; top: 3px; width: 15px; height: 14px; background: #d8d3c8; }
.tp-dublu b { right: 3px; top: 3px; width: 5px; height: 6px; background: #b9b2a6; }
.tp-dublu em { right: 3px; bottom: 3px; width: 5px; height: 7px; background: #b9b2a6; }

.clapa-photo-upload {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px;
  border: 1px dashed #c9c1b3;
  border-radius: 9px;
  background: var(--paper);
  cursor: pointer;
}
.clapa-photo-upload:hover { border-color: var(--red); }
.clapa-photo-preview {
  width: 78px;
  height: 52px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fffdf9;
  color: var(--muted);
  font-size: 7px;
}
.clapa-photo-preview.has-image { border-style: solid; }
.clapa-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clapa-photo-preview .icon { width: 15px; height: 15px; }
.clapa-photo-copy { display: grid; gap: 3px; text-align: left; }
.clapa-photo-copy strong { font-size: 10px; color: var(--ink); }
.clapa-photo-copy small { font-size: 8px; color: var(--muted); }

/* Photo crop editor */
.crop-backdrop { z-index: 80; }
.crop-modal { max-width: 620px; width: min(620px, calc(100vw - 28px)); }
.crop-modal .modal-head p { max-width: 460px; }
.crop-viewport {
  position: relative;
  width: min(100%, calc(52vh * var(--crop-aspect, 1.15)));
  max-height: 52vh;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: #171715;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.crop-viewport:active { cursor: grabbing; }
.crop-viewport img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.crop-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.crop-toolbar .btn { min-height: 34px; font-size: 10px; }
.crop-toolbar > span { flex: 1 1 180px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.crop-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.crop-actions .btn { min-width: 120px; }
.slot-adjust {
  position: absolute;
  z-index: 3;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(22,22,21,.72);
  color: #fff;
  cursor: pointer;
}
.slot-adjust .icon { width: 12px; height: 12px; }
.slot-adjust:hover { background: var(--red); border-color: var(--red); }
@media (max-width: 520px) {
  .crop-modal .modal-body { padding-inline: 16px; }
  .crop-viewport { max-height: 42vh; }
  .crop-actions .btn { flex: 1; min-width: 0; }
}

/* Adjust buttons under each month */
.photo-slot-wrap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.photo-slot-wrap .photo-slot { width: 100%; }
.photo-slot-wrap .slot-adjust {
  position: static;
  width: 100%;
  height: 24px;
  gap: 4px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink-3);
  font-family: var(--font-body);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .02em;
}
.photo-slot-wrap .slot-adjust .icon { width: 9px; height: 9px; }
.photo-slot-wrap .slot-adjust:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.photo-slot-wrap .slot-adjust:disabled { opacity: .45; cursor: not-allowed; background: var(--paper); color: var(--muted); }
.photo-grid.single .photo-slot-wrap { width: 64%; margin: 0 auto; }
.photo-grid.single .photo-slot { width: 100%; }
.pocket-photo-adjust { display: flex; justify-content: center; padding: 10px 0 2px; }
.pocket-photo-adjust .btn { min-height: 34px; font-size: 10px; }
.pocket-photo-adjust[hidden] { display: none; }

@font-face {
  font-family: 'Calendar Script';
  src: url('/assets/fonts/GreatVibes-Regular.ttf') format('truetype');
  font-display: swap;
}

/* Crop fit options */
.crop-fit-options { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 11px; }
.crop-fit-options > span { color: var(--muted); font-size: 9px; font-weight: 600; margin-right: 2px; }
.crop-fit-options button {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 7px 10px;
  background: #fff;
  color: var(--ink-3);
  font: 600 9px/1 var(--font-body);
  cursor: pointer;
}
.crop-fit-options button:hover { border-color: var(--ink); }
.crop-fit-options button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.crop-viewport.is-fit { background: #fffdf9; }
.crop-viewport.is-fit { cursor: default; }

.crop-zoom-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.crop-zoom-row > span { color: var(--muted); font-size: 9px; font-weight: 600; min-width: 32px; }
.crop-zoom-row input { flex: 1; accent-color: var(--red); }
.crop-zoom-row strong { color: var(--ink-3); font-size: 9px; min-width: 34px; text-align: right; }
.crop-zoom-row input:disabled { opacity: .4; }

/* Arrange all wall-calendar photos */
.arrange-all-wrap { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; padding: 9px 0 1px; }
.arrange-all-wrap[hidden] { display: none; }
.arrange-all-wrap .btn { min-height: 34px; font-size: 10px; gap: 7px; }
.arrange-arrows { color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.crop-month-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 10px 0 8px; }
.crop-month-nav[hidden] { display: none; }
.crop-month-nav button {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer;
}
.crop-month-nav button:hover { border-color: var(--red); color: var(--red); }
.crop-month-nav button:disabled { opacity: .35; cursor: not-allowed; }
.crop-month-nav .icon { width: 13px; height: 13px; }
.crop-month-nav strong { min-width: 130px; text-align: center; font-family: var(--font-display); font-size: 13px; letter-spacing: -.02em; }

.clapa-photo-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.clapa-photo-actions[hidden] { display: none; }
.clapa-photo-actions .btn { min-height: 32px; font-size: 9px; }

#calendarDeskCard .checkline, #calendarPersonalizeCard .btn { margin-top: 10px; }
#calendarPersonalizeModal .field-hint { display:block; margin-top:5px; color:var(--muted); font-size:8px; line-height:1.4; }
#calendarPersonalizeModal input[type="color"] { width:100%; height:38px; padding:2px; border:1px solid var(--line); border-radius:7px; background:#fff; }
#calendarCoverUpload .brand-logo-upload { min-height: 100px; }

.cover-photo-upload { min-height: 130px; }
.cover-photo-upload img { width: 100%; max-height: 170px; object-fit: cover; border-radius: 6px; }
.cover-photo-upload.has-image .brand-logo-empty { display: none; }
.cover-photo-upload img[hidden] { display: none !important; }
#calShowCover.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.preview-mode-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.agenda-page-label { display:flex; align-items:center; padding:0 6px; font-weight:650; font-size:11px; color:var(--ink); }
#nbAgendaImagePreview { width:100%; max-height:260px; object-fit:cover; border-radius:6px; display:block; }
#nbAgendaImagePreview[hidden] { display:none !important; }

@keyframes agendaPageNext { 0% { transform: perspective(900px) rotateY(0); } 45% { transform: perspective(900px) rotateY(-13deg); } 100% { transform: perspective(900px) rotateY(0); } }
@keyframes agendaPagePrev { 0% { transform: perspective(900px) rotateY(0); } 45% { transform: perspective(900px) rotateY(13deg); } 100% { transform: perspective(900px) rotateY(0); } }
.preview-stage.page-turn-next canvas { animation: agendaPageNext .34s ease; }
.preview-stage.page-turn-prev canvas { animation: agendaPagePrev .34s ease; }

#nbAgendaLogoPreview { max-height: 48px; max-width: 100%; object-fit: contain; display: block; }
#nbAgendaLogoPreview[hidden] { display: none !important; }

@font-face {
  font-family: 'PT Serif';
  src: url('/assets/fonts/PTSerif-Regular.ttf') format('truetype');
  font-display: swap;
}

.crop-rotate-row { display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin-top:10px; }
.crop-rotate-row > span:first-child { color:var(--muted); font-size:9px; font-weight:600; margin-right:2px; }
.crop-rotate-row .btn { min-height:32px; font-size:10px; padding:6px 10px; }
