.shirt-home {
  --navy: #051855;
  --ink: #051855;
  --muted: #707997;
  --card: #eff2f9;
  --line: #d3d7e1;
  --blue: #45a4ff;
  --blue-d: #3e94e6;
  --blue-soft: #e4f2ff;
  --ok: #2f8f5e;
  --ok-soft: #e5f6ee;
  color: var(--ink);
  margin-top: 2.5rem;
  font-family: "lufga", sans-serif;
}

.shirt-home button,
.shirt-home input,
.shirt-home textarea,
.shirt-home select {
  font: inherit;
  color: inherit;
}

.shirt-home h2,
.shirt-home h3,
.shirt-home h4,
.shirt-home p {
  margin: 0;
}

.maker,
.quote-card,
.tier,
.quote-side {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.maker {
  padding: 22px;
}

.maker-head,
.quote-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.maker-head h2,
.quote-head h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}

.maker-head p,
.quote-head p {
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.3;
  margin-top: 4px;
}

.credits {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 7px 7px 16px;
  font-size: 13px;
}

.credits strong { color: var(--navy); font-weight: 600; }

.shirt-home .credits a,
.shirt-home .credits-signin {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s all ease;
}

.shirt-home .credits a:hover,
.shirt-home .credits-signin:hover {
  background: #fff;
  color: var(--blue);
}

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

.preview-pane {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.pane-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.seg {
  display: inline-flex;
  background: var(--card);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.seg button {
  border: 0;
  background: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.seg button.on {
  background: #fff;
  color: var(--navy);
  font-weight: 500;
  box-shadow: 0 2px 4px 0 rgba(69, 164, 255, 0.4);
}

.seg button:disabled,
.seg button[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.stage {
  aspect-ratio: 1;
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  background: conic-gradient(#f2f4f9 25%, #fff 0 50%, #f2f4f9 0 75%, #fff 0) 0 0 / 22px 22px;
  padding: 20px;
}

.stage strong {
  display: block;
  margin-top: 10px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 500;
}

.stage.shirt {
  background: var(--card);
  container-type: size;
}

.stage .shirt-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.stage .shirt-wrap .shirt-photo {
  width: auto;
  max-width: 88cqw;
  max-height: 88cqh;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.tier .shirt-wrap .shirt-photo { margin: 0 auto; }

.shirt-wrap { position: relative; }

/* Printable area + drag_resize — same interaction model as place-order (resize_objects.php). */
.shirt-home .shirt-print-area {
  position: absolute;
  z-index: 1;
  box-sizing: border-box;
  border: 1px solid transparent;
}

.shirt-home .shirt-print-area:not([hidden]) {
  border-color: rgba(193, 199, 215, 0.55);
}

.shirt-home .shirt-art-box.drag_resize {
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  cursor: move;
  border: 1px dotted #ccc;
}

.shirt-home .shirt-art-box .shirt-art {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  pointer-events: none;
}

.shirt-home .shirt-art-box[hidden],
.shirt-home .shirt-print-area[hidden],
.shirt-wrap > .shirt-art[hidden],
.shirt-art[hidden] { display: none !important; }

.preview-pane.locked .shirt-art-box {
  pointer-events: none;
  cursor: default;
}

.preview-pane.locked .shirt-art-box .ui-resizable-handle,
.preview-pane.locked .shirt-art-box .ui-rotatable-handle {
  display: none !important;
}

/* Quote cards keep simple % overlay art (not interactive). */
.tier .shirt-wrap > .shirt-art,
.tier .shirt-art {
  position: absolute;
  left: 24.8889%;
  top: 13.3333%;
  width: 49.5556%;
  height: 60%;
  z-index: 1;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.place-hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 400;
}

.place-hint[hidden] { display: none; }

.tier .shirt-wrap {
  display: block;
  width: 86%;
  max-width: 340px;
  margin: 8px auto 12px;
}

.stage .shirt-photo[hidden] {
  display: none;
}

.modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.mode {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  cursor: pointer;
  transition: 0.3s all ease;
}

.mode.on {
  background: var(--blue-soft);
  border: 3px solid var(--blue);
}

.mode h4 { font-size: 16px; font-weight: 600; color: var(--navy); }
.mode p { font-size: 14px; color: var(--muted); font-weight: 400; line-height: 1.3; margin-top: 2px; }
.mode .tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  background: var(--card);
  color: var(--navy);
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}
.mode .tag.free { background: var(--ok-soft); color: var(--ok); }

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}

.shirt-home textarea,
.shirt-home select,
.drop {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}

.shirt-home textarea {
  min-height: 92px;
  resize: vertical;
  padding: 10px 12px;
  line-height: 1.45;
}

.shirt-home textarea:focus,
.shirt-home select:focus,
.shirt-home input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 2px 4px 0 rgba(69, 164, 255, 0.4);
}

.hint,
.shirt-home .hint,
.shirt-home #orderErr {
  display: none;
  color: #dc3545;
  font-size: 12px;
  margin-top: 6px;
}

.hint.show,
.shirt-home .hint.show,
.shirt-home #orderErr.show { display: block; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
  margin-bottom: 12px;
}
.chip-label { font-size: 12px; font-weight: 700; color: var(--muted); margin: 12px 0 0; }

.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  cursor: pointer;
}

.chip.on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 2px 4px 0 rgba(69, 164, 255, 0.4);
}

.gen-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.shirt-home .btn-main {
  background-color: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  border-radius: 30px;
  font-family: "lufga", sans-serif;
  font-weight: 500;
  font-size: 16px;
  min-width: 150px;
  height: auto;
  padding: 10px 20px;
  cursor: pointer;
  transition: 0.3s all ease;
}

.shirt-home .btn-main:hover {
  background-color: #fff;
  color: var(--blue);
  border-color: var(--blue);
}

.note { font-size: 12px; color: var(--muted); line-height: 1.45; }

.drop {
  position: relative;
  display: block;
  border-style: dashed;
  border-width: 1.5px;
  border-color: #c1c7d7;
  text-align: center;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  overflow: hidden;
}

.drop.is-dragover {
  border-color: var(--blue);
  background: var(--blue-soft, #eaf5ff);
}

/* Invisible file input covers the whole drop box so a real click hits <input>.
   Must override global theme rule `.drop input { display:none }` from resize_objects.php
   — that rule made the picker open but never fire change for real clicks. */
.shirt-home .drop input[type="file"] {
  display: block !important;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  font-size: 0;
}

.shirt-home .drop strong,
.shirt-home .drop span {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.shirt-home .drop strong { display: block; margin-top: 8px; color: var(--navy); font-weight: 500; }
.shirt-home .drop span { font-size: 12px; color: var(--muted); }

.file-name {
  font-size: 13px;
  color: var(--navy);
  margin-top: 8px;
  font-weight: 600;
  min-height: 1.2em;
}

.shirt-home .hide { display: none; }

.quote { margin-top: 28px; }

.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}

.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.tier {
  border-radius: 8px;
  padding: 18px 18px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: 0.3s all ease;
}

.tier.on {
  background: var(--blue-soft);
  border: 3px solid var(--blue);
}

.tier-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.tier-top b {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-d);
}

.pick {
  font-size: 12px;
  font-weight: 500;
  background: var(--blue);
  color: #fff;
  border-radius: 30px;
  padding: 3px 10px;
}

.radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #c1c7d7;
  background: #fff;
}

.tier.on .radio { border-color: var(--blue); box-shadow: inset 0 0 0 5px var(--blue); }

.tier .shirt-photo {
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
.shirt-photo.catalog-photo { background: #fff; }
.tier h3 { font-size: 22px; font-weight: 500; color: var(--navy); line-height: 1.3; min-height: 48px; }
.tier .tier-brand,
.tier .tier-style,
.tier .tier-fabric {
  font-family: "lufga", sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.tier .tier-brand { font-size: 13px; color: var(--muted); margin: 10px 0 2px; min-height: 18px; }
.tier .tier-style { font-size: 14px; font-weight: 500; color: var(--navy); margin: 2px 0 0; min-height: 18px; }
.tier .tier-fabric {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
  margin: 4px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tier ul { list-style: none; padding: 0; margin: 0 0 14px; }
.tier li { font-size: 13px; display: flex; gap: 8px; margin-top: 6px; }
.tier li::before { content: "✓"; color: var(--ok); font-weight: 700; }

.tier-price {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: auto;
}

.tier-price .sum { font-size: 22px; font-weight: 600; color: var(--navy); }
.tier-price .each, .diff { font-size: 13px; color: var(--muted); }
.diff { margin-top: 4px; min-height: 16px; }

.quote-side { border-radius: 8px; padding: 20px; }
.block { margin-bottom: 14px; }

.sizes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.size { text-align: center; }
.size span, .size small { display: block; font-size: 11px; color: var(--muted); }
.size small { min-height: 14px; margin-top: 3px; }
.size input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  background: #fff;
}

.qty-line {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
}
.qty-line strong { color: var(--navy); }

.shirt-home select {
  height: 46px;
  padding: 0 12px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23051855' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.speed {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 6px;
  cursor: pointer;
  text-align: left;
  transition: 0.3s all ease;
}

.speed.on {
  background: var(--blue-soft);
  border: 3px solid var(--blue);
}
.speed .name { display: block; font-size: 13px; font-weight: 500; color: var(--navy); }
.speed .days { display: block; font-size: 11.5px; color: var(--muted); }
.speed .cost { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--navy); }

.total-box { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.total-box .who { font-size: 12.5px; color: var(--muted); }
.total-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.total-line .amt { font-size: 30px; font-weight: 600; color: var(--navy); }
.ship { color: var(--ok); font-size: 12.5px; margin-top: 4px; }
.nudge {
  background: var(--blue-soft);
  color: var(--navy);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  margin-top: 12px;
}
.nudge button {
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.order-btn { width: 100%; margin-top: 16px; }

.skip, .ask {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--navy);
  margin-top: 14px;
}

.skip a { color: var(--blue-d); text-decoration: none; }
.ask { border-top: 1px solid var(--line); padding-top: 12px; }
.ask a { color: var(--navy); text-decoration: none; }

.preview-pane { position: relative; }

.art-preview {
  width: 78%;
  max-width: 280px;
  position: relative;
}

.art-preview img { width: 100%; height: auto; display: block; }

.art-preview img[hidden] { display: none; }

/* Same inspect pattern as SIMBroidery: magnifier + Fancybox zooms only the art */
.art-zoom-trigger {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: default;
}

.art-zoom-trigger.is-zoomable,
.art-zoom-trigger[aria-disabled="false"] {
  cursor: zoom-in;
}

.art-zoom-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 12, 18, 0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.2s ease;
}

.art-zoom-trigger.is-zoomable .art-zoom-hint,
.art-zoom-trigger[aria-disabled="false"] .art-zoom-hint {
  display: flex;
  opacity: 1;
}

@media (hover: hover) {
  .art-zoom-trigger.is-zoomable:hover .art-zoom-hint,
  .art-zoom-trigger[aria-disabled="false"]:hover .art-zoom-hint {
    opacity: 1;
  }
}

.preview-pane.locked .art-zoom-trigger {
  pointer-events: none;
  cursor: default;
}

.preview-pane.locked .art-zoom-hint {
  display: none !important;
}

/* Same preview loader pattern as SIMBroidery (.preview-loading). */
.shirt-home .preview-pane.is-loading .preview-loading {
  display: flex !important;
}

.shirt-home .preview-loading {
  position: absolute;
  inset: 12px;
  top: 56px;
  z-index: 20;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
}

.shirt-home .preview-loading[hidden] {
  display: none !important;
}

.shirt-home .preview-loading .spinner-border {
  width: 44px;
  height: 44px;
  border-width: 3.5px;
  color: #47a3ff !important;
  margin-bottom: 14px;
}

.shirt-home .preview-loading h4 {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 6px 0;
  line-height: 1.3;
}

.shirt-home .preview-loading p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.4;
}

.shirt-home .preview-loading .simbroidery-step-text-wrapper {
  max-width: 380px;
  margin: 0 auto;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.shirt-home .preview-loading .simbroidery-step-text-wrapper.simbroidery-step-changing {
  opacity: 0;
  transform: translateY(4px);
}

.shirt-home .preview-loading .simbroidery-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 9999px;
  background: var(--blue-soft, #eaf5ff);
  color: var(--blue-d, #1a7fd4);
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.shirt-home .preview-loading .simbroidery-step-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.shirt-home .preview-loading .simbroidery-step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all 0.3s ease;
}

.shirt-home .preview-loading .simbroidery-step-dot.active {
  background: #47a3ff;
  width: 18px;
  border-radius: 4px;
}

.preview-pane.locked .stage > div {
  filter: blur(16px) saturate(1.15);
}

.gate {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 20px;
}

.gate[hidden] { display: none; }

.gate-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(14, 26, 79, 0.22);
  padding: 26px 24px;
  max-width: 350px;
  text-align: center;
}

.gate-card .lock {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-d);
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
}

.gate-card h3 {
  margin: 0 0 6px;
  font-size: 19px;
  color: var(--navy);
  font-weight: 600;
}

.gate-card p {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 300;
}

.gate-card .btn-main {
  display: block;
  width: 100%;
  text-decoration: none;
  text-align: center;
}

.gate-card .perk {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ok);
  margin-top: 12px;
}

@media (max-width: 1100px) {
  .maker-grid,
  .quote-grid,
  .tiers,
  .modes { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .sizes { grid-template-columns: repeat(3, 1fr); }
  .maker, .quote-side, .tier { padding: 16px; }
}

/* Quick login modal — mirrors login.html card (colors/fonts) */
.ql-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.ql-modal[hidden] { display: none; }

.ql-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 48, 0.45);
}

.shirt-home .ql-card {
  position: relative;
  width: min(450px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05), 0 18px 50px rgba(14, 26, 79, 0.18);
  padding: 28px;
  z-index: 1;
  color: #051855;
  font-family: "lufga", sans-serif;
}

.shirt-home .ql-card .ql-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #d3d7e1;
  background: #fff;
  color: #707997;
  font-family: "lufga", sans-serif;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.shirt-home .ql-card .app-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.shirt-home .ql-card .app-brand img {
  max-width: 190px;
  height: auto;
}

.shirt-home .ql-card h1 {
  margin: 40px 0 25px;
  color: #051855;
  font-family: "lufga", sans-serif;
  font-size: 24px;
  font-weight: 700;
}

/* OTP step title matches otp-verify.html (fs-2) */
.shirt-home .ql-card .ql-otp-head h1 {
  margin: 40px 0 8px;
  font-size: 32px;
  line-height: 1.1;
  color: #233446;
}

.shirt-home .ql-card .ql-otp-head p {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  color: #8592a3;
  font-weight: 400;
}

.shirt-home .ql-card .form-label {
  color: #707997;
  text-transform: capitalize;
  font-family: "lufga", sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

.shirt-home .ql-card .form-control,
.shirt-home .ql-card input.form-control {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d3d7e1;
  border-radius: 6px;
  padding: 10px 14px;
  min-height: 45px;
  font-family: "lufga", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  background: #fff;
  outline: none;
}

.shirt-home .ql-card .form-control::placeholder { color: #707997; }

.shirt-home .ql-card .form-control:focus {
  border-color: #45a4ff;
  box-shadow: 0 0 0 3px rgba(69, 164, 255, 0.15);
}

/* OTP input matches otp-verify.html (fs-3 bold; spacing comes from spaces in placeholder) */
.shirt-home .ql-card #qlOtp.form-control,
.shirt-home .ql-card input#qlOtp.letter-spacing-4 {
  min-height: 56px;
  height: 56px;
  padding: 7px 14px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.4;
  text-align: center;
  border-radius: 6px;
  color: #333;
}

.shirt-home .ql-card #qlOtp.form-control::placeholder,
.shirt-home .ql-card #qlOtp.form-control::-webkit-input-placeholder {
  color: #999;
  opacity: 1;
  letter-spacing: normal;
  font-weight: 700;
  font-size: 26px;
}

.shirt-home .ql-card .ql-otp-resend {
  margin-top: 16px;
  margin-bottom: 12px;
}

.shirt-home .ql-card .ql-otp-resend .small,
.shirt-home .ql-card #qlResendTimer {
  font-size: 13px;
  color: #808080;
}

.shirt-home .ql-card #qlResendBtn {
  width: auto;
  min-height: auto;
  padding: 0;
  margin: 0;
  color: #051855 !important;
  font-weight: 500;
}

/* Override .shirt-home button { color: inherit } so primary stays white on blue */
.shirt-home .ql-card button.btn-2,
.shirt-home .ql-card .btn-2 {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: #45a4ff;
  color: #fff !important;
  border: 1px solid #45a4ff;
  border-radius: 30px;
  font-family: "lufga", sans-serif;
  font-weight: 500;
  font-size: 15px;
  min-width: 150px;
  min-height: 45px;
  height: 45px;
  padding: 10px 20px;
  cursor: pointer;
  transition: 0.3s all ease;
}

.shirt-home .ql-card button.btn-2:hover,
.shirt-home .ql-card .btn-2:hover {
  background-color: #fff;
  color: #45a4ff !important;
  border-color: #45a4ff;
}

.shirt-home .ql-card button.btn-link,
.shirt-home .ql-card .btn-link {
  background: none;
  border: 0;
  color: #051855 !important;
  font-family: "lufga", sans-serif;
  font-size: 15px;
  font-weight: 400;
  margin-top: 0;
  padding: 7px 0;
  min-height: 39px;
  cursor: pointer;
  width: 100%;
  text-decoration: none;
}

.shirt-home .ql-card #qlSwitchBtn {
  margin-top: 8px;
}

.shirt-home .ql-card button.btn-link:hover,
.shirt-home .ql-card .btn-link:hover {
  color: #45a4ff !important;
}

.shirt-home .ql-card .text-muted,
.shirt-home .ql-card .text-secondary {
  color: #707997 !important;
  font-family: "lufga", sans-serif;
}

.shirt-home .ql-card .text-dark { color: #051855 !important; }

.shirt-home .ql-card .d-none { display: none !important; }
.shirt-home .ql-card .text-center { text-align: center; }
.shirt-home .ql-card .mb-0 { margin-bottom: 0; }
.shirt-home .ql-card .mb-2 { margin-bottom: 0.5rem; }
.shirt-home .ql-card .mb-4 { margin-bottom: 1.25rem; }
.shirt-home .ql-card .mt-1 { margin-top: 0.25rem; }
.shirt-home .ql-card .mt-2 { margin-top: 0.5rem; }
.shirt-home .ql-card .mt-3 { margin-top: 1rem; }
.shirt-home .ql-card .p-0 { padding: 0; }

/* Design credits purchase modal */
.shirt-home .dc-card {
  width: min(520px, 100%);
  padding: 28px 24px 22px;
  text-align: center;
}

.shirt-home .dc-card .ql-close {
  top: 14px;
  right: 14px;
}

.dc-icon {
  width: 56px;
  height: 56px;
  margin: 4px auto 14px;
  border-radius: 50%;
  background: var(--blue-soft);
  display: grid;
  place-items: center;
}

.dc-icon-ok {
  background: var(--ok-soft);
}

.dc-title {
  margin: 0 0 8px !important;
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
}

.dc-sub {
  margin: 0 auto 18px !important;
  max-width: 36ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.dc-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #eef5ff;
  text-align: left;
}

.dc-balance-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.dc-balance strong {
  color: var(--navy);
  font-size: 1rem;
  white-space: nowrap;
}

.dc-balance-success {
  background: #f3f5fb;
  margin-bottom: 20px;
}

.dc-packs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
  text-align: left;
}

.dc-pack {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.dc-pack:hover {
  border-color: #a9cfff;
}

.dc-pack.is-selected {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 0 1px var(--blue);
}

.dc-pack input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dc-radio {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 2px solid #c5cbd8;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.dc-pack.is-selected .dc-radio {
  border-color: var(--blue);
}

.dc-pack.is-selected .dc-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.dc-pack-body {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  align-items: start;
}

.dc-pack-credits {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.98rem;
}

.dc-pack-unit {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.78rem;
}

.dc-pack-price {
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.15rem;
}

.dc-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.shirt-home .dc-card .btn-2.w-100,
.shirt-home .dc-card #dcContinueBtn,
.shirt-home .dc-card #dcPurchaseBtn,
.shirt-home .dc-card #dcDoneBtn {
  width: 100%;
  margin-top: 2px;
}

.dc-cancel {
  display: block;
  width: 100%;
  margin: 12px 0 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.dc-cancel:hover { color: var(--navy); }

.dc-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 !important;
  color: var(--muted);
  font-size: 0.82rem;
}

.dc-note svg { color: var(--ok); }

.dc-back {
  display: block;
  width: fit-content;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.dc-back:hover { color: var(--blue-d); }

.dc-summary,
.dc-paybox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  background: #f7f9fc;
}

.dc-paybox {
  background: #fff;
  flex-wrap: wrap;
}

.dc-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 2px;
}

.dc-summary strong,
.dc-paybox strong {
  color: var(--navy);
  font-size: 0.98rem;
}

.dc-pay-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dc-pay-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.dc-pay-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.dc-default-pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: #2f8f5e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
}

.dc-card-select {
  max-width: 150px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: right;
}

.dc-add-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.dc-add-card:hover { color: var(--blue-d); }

.dc-new-card {
  margin-bottom: 14px;
  text-align: left;
}

.shirt-home .dc-card .initStripeElement {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 44px;
  background: #fff;
}

.dc-card-error,
.dc-error {
  margin: 0 0 12px;
  color: #c0392b;
  font-size: 0.88rem;
  text-align: left;
}

.dc-secure {
  margin: 12px 0 0 !important;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 560px) {
  .dc-packs {
    grid-template-columns: 1fr;
  }
}
