.home-content-shell {
  width: min(1500px, calc(100vw - 72px));
  margin: 0 auto;
  padding-bottom: var(--home-section-gap-loose);
}

.home-content-layout {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  justify-content: start;
}

.home-create-card {
  height: 100%;
  min-height: 430px;
  background: linear-gradient(180deg, #fffdf9 0%, #fffbf4 100%);
  border: 1px solid var(--home-surface-border);
  border-radius: var(--home-radius-large);
  box-shadow: 0 10px 22px rgba(47, 52, 64, 0.045);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 18px 28px;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-create-card:hover {
  transform: translateY(-2px);
  border-color: #d8e4f7;
  box-shadow: 0 14px 28px rgba(47, 52, 64, 0.07);
}

.home-create-card:focus-visible {
  outline: 2px solid #4c8bf5;
  outline-offset: 4px;
}

.home-create-visual {
  position: relative;
  width: 100%;
  min-height: 258px;
  margin-top: 6px;
}

.home-create-sheet {
  position: relative;
  width: 164px;
  height: 210px;
  margin: 0 auto;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #dfe7f5;
  box-shadow: 0 8px 20px rgba(47, 52, 64, 0.06);
  overflow: hidden;
}

.home-create-sheet::before {
  content: "";
  display: block;
  height: 56px;
  background: #4c8bf5;
}

.home-create-sheet::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 78px;
  height: 92px;
  border-radius: 12px;
  background: #f9fbff;
}

.home-create-sheet-back {
  position: absolute;
  left: 44px;
  top: 18px;
  width: 156px;
  height: 198px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(221, 229, 239, 0.9);
  transform: rotate(-8deg);
}

.home-create-sheet-front {
  position: relative;
  z-index: 1;
  top: 28px;
}

.home-create-badge {
  position: absolute;
  left: 50%;
  top: 138px;
  z-index: 2;
  width: 70px;
  height: 70px;
  margin-left: -35px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #d8e2ee;
  box-shadow: 0 10px 18px rgba(47, 52, 64, 0.075);
}

.home-create-badge::before,
.home-create-badge::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #4c8bf5;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.home-create-badge::before {
  width: 26px;
  height: 3px;
}

.home-create-badge::after {
  width: 3px;
  height: 26px;
}

.home-create-lines {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 94px;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.home-create-line {
  height: 9px;
  border-radius: 999px;
  background: #eaf2ff;
}

.home-create-line:nth-child(1) {
  background: #65c98a;
}

.home-create-line:nth-child(2) {
  background: #f6c35b;
}

.home-create-line.short {
  width: 62%;
}

.home-create-copy {
  margin-top: auto;
  padding-top: 20px;
}

.home-create-title {
  color: #2f3440;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: 2px;
}

.home-create-desc {
  margin-top: 10px;
  color: #5f6672;
  font-size: 15px;
  line-height: 1.7;
}

.home-template-grid {
  display: contents;
}

.home-template-empty {
  grid-column: 2 / -1;
  min-height: 220px;
  border: 1px dashed #dbe5f3;
  border-radius: var(--home-radius-large);
  background: #ffffff;
  color: #7b8696;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-template-card {
  height: 100%;
  min-height: 430px;
  background: #ffffff;
  border: 1px solid var(--home-surface-border);
  border-radius: var(--home-radius-large);
  box-shadow: var(--home-surface-shadow-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-template-thumb {
  padding: 0;
  border: 0;
  position: relative;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-template-thumb:hover {
  transform: translateY(-1px);
}

.home-template-thumb:focus-visible {
  outline: 2px solid #4c8bf5;
  outline-offset: -2px;
}

.home-template-preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-template-thumb.is-handcopy {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #f8fafc;
}

.home-template-preview.is-handcopy {
  object-fit: contain;
}

.home-template-copy {
  padding: 14px 16px 0;
}

.home-template-title {
  min-height: 44px;
  color: #2f3440;
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-template-meta {
  margin-top: auto;
  border-top: 1px solid #efe8dd;
  padding: 14px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-template-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7c8694;
  font-size: 14px;
  line-height: 1;
}

.home-template-stat svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
}

.home-pagination-shell {
  width: min(1500px, calc(100vw - 72px));
  margin: 0 auto 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

#home-pagination-list {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-pagination-item,
.home-pagination-arrow,
.home-pagination-ellipsis {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--home-radius-pill);
  color: #5f6672;
  font-size: 15px;
  line-height: 1;
}

.home-pagination-item {
  background: #ffffff;
  border: 1px solid var(--home-surface-border);
  box-shadow: var(--home-surface-shadow-soft);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.home-pagination-item:hover:not(.active) {
  background: #eaf2ff;
  color: #4c8bf5;
}

.home-pagination-item.active {
  background: #4c8bf5;
  border-color: #4c8bf5;
  color: #ffffff;
}

.home-pagination-arrow {
  background: #ffffff;
  border: 1px solid var(--home-surface-border);
  box-shadow: var(--home-surface-shadow-soft);
  cursor: pointer;
  color: #4c8bf5;
  transition: background-color 0.2s;
}

.home-pagination-arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

.home-pagination-arrow:hover {
  background: #eaf2ff;
}

.home-pagination-arrow:disabled,
.home-pagination-arrow.is-disabled {
  cursor: default;
  color: #c3ccd8;
  background: #ffffff;
  opacity: 0.72;
}

.home-pagination-ellipsis {
  min-width: 20px;
  color: #9ca3af;
}

.home-template-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.home-template-modal.is-open {
  display: flex;
}

.home-template-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 38, 46, 0.42);
}

.home-template-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1000px, calc(100vw - 40px));
  max-height: calc(100vh - 56px);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(47, 52, 64, 0.14);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.home-template-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid #e7ebf1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #667085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.home-template-modal-close:hover {
  background: #f7fbff;
  border-color: #cfe0fb;
  color: #2f6fe4;
}

.home-template-modal-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

.home-template-modal-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(360px, 430px);
  gap: 0;
}

.home-template-modal-stage {
  min-width: 0;
  background: linear-gradient(180deg, #f7f8fb 0%, #f2f4f8 100%);
  padding: 22px 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
}

.home-template-business-stage {
  justify-content: center;
}

.home-template-business-gallery {
  width: min(100%, 560px);
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(47, 52, 64, 0.05);
  padding: 12px;
}

.home-template-business-thumbs {
  margin-top: 12px;
  border-top: 1px solid #eef1f5;
  padding-top: 12px;
  width: 100%;
  max-height: 320px;
  overflow: auto;
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  background: #ffffff;
}

.home-template-business-thumbs img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
}

.home-template-modal-figure {
  width: min(100%, 560px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  overflow: hidden;
  padding: 12px;
}

.home-template-modal-figure-gallery {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.home-template-modal-figure-card {
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  background: #ffffff;
  padding: 8px;
}

.home-template-modal-figure-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
}

.home-template-modal-figure-gallery.is-hidden,
.home-template-business-gallery.is-hidden,
.home-template-modal-draft.is-hidden,
.home-template-modal-purchase.is-hidden,
.home-template-modal-body.is-hidden,
.home-template-modal-handcopy.is-hidden,
.home-template-modal-payment.is-hidden,
.home-template-modal-handcopy-verify.is-hidden,
.home-template-modal-payment-success.is-hidden,
.home-template-modal-custom.is-hidden {
  display: none;
}

.home-template-modal-draft {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 44px 42px 36px;
}

.home-template-business-stage .home-template-modal-draft {
  width: min(100%, 560px);
  height: auto;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 22px rgba(47, 52, 64, 0.05);
}

.home-template-modal-draft-page {
  width: 100%;
  height: 100%;
  border: 1px solid #ebedf0;
  background: #fbfbfb;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 46px 44px;
}

.home-template-modal-draft-form {
  width: min(100%, 268px);
  display: grid;
  gap: 10px;
}

.home-template-modal-draft-label {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
}

.home-template-modal-draft-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-template-modal-draft-input {
  height: 34px;
  border: 1px solid #d9e3f0;
  border-radius: 10px;
  background: #ffffff;
  padding: 0 12px;
  color: #1f2937;
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-template-modal-draft-input.long {
  width: 156px;
}

.home-template-modal-draft-input.short {
  width: 156px;
}

.home-template-modal-draft-code {
  width: 96px;
  height: 34px;
  border: 1px solid #d9e3f0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: #31507d;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-template-modal-draft-submit {
  width: 72px;
  height: 34px;
  border: 1px solid #bfd5ff;
  border-radius: 10px;
  background: linear-gradient(180deg, #f0f6ff 0%, #e0edff 100%);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-template-modal-draft-input:focus,
.home-template-modal-draft-code:focus,
.home-template-modal-draft-submit:focus {
  outline: none;
  border-color: #7aa2ff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.home-template-modal-draft-code:hover,
.home-template-modal-draft-submit:hover {
  border-color: #bfd5ff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.home-template-modal-arrow {
  position: absolute;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(223, 228, 236, 0.95);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(47, 52, 64, 0.08);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s ease;
}

.home-template-modal-arrow:hover {
  background: #f7fbff;
  border-color: #bfd4fb;
  color: #2f6fe4;
  transform: translateY(-1px);
}

.home-template-modal-arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

.home-template-modal-arrow.is-hidden {
  display: none;
}

.home-template-modal-figure-arrow {
  top: 50%;
  transform: translateY(-50%);
}

.home-template-modal-figure-arrow:hover {
  transform: translateY(calc(-50% - 1px));
}

.home-template-modal-sidebar {
  min-width: 0;
  padding: 24px 28px 20px;
  border-left: 1px solid #eef1f5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-template-modal-title {
  margin: 0;
  color: #2f3440;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  padding-right: 34px;
}

.home-template-modal-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: #8a94a3;
  font-size: 12px;
}

.home-template-modal-stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.home-template-modal-stat svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.home-template-modal-specs {
  display: grid;
  gap: 6px;
  padding: 2px 0 0;
}

.home-template-modal-spec {
  display: flex;
  align-items: baseline;
  gap: 0;
  color: #2f3440;
  font-size: 15px;
  line-height: 1.75;
}

.home-template-modal-spec-label {
  color: #2f3440;
}

.home-template-modal-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
  color: #2f3440;
  font-size: 15px;
  line-height: 1.7;
}

.home-template-modal-purchase {
  display: grid;
  gap: 8px;
  padding: 4px 0 2px;
}

#home-template-business-purchase {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 2px solid #4c8bf5;
}

.home-template-modal-purchase-line {
  color: #2f3440;
  font-size: 15px;
  line-height: 1.55;
}

.home-template-modal-purchase-coupon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.home-template-modal-purchase-input {
  width: 112px;
  height: 34px;
  border: 1px solid #d9e3f0;
  border-radius: 10px;
  background: #ffffff;
  padding: 0 12px;
  color: #1f2937;
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-template-modal-purchase-submit,
.home-template-modal-purchase-buy {
  height: 34px;
  border: 1px solid #d9e3f0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: #31507d;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-template-modal-purchase-submit {
  width: 44px;
}

.home-template-modal-purchase-buy {
  width: 64px;
  margin-top: 4px;
  background: linear-gradient(180deg, #f0f6ff 0%, #e0edff 100%);
  color: #1d4ed8;
  border-color: #bfd5ff;
}

.home-template-modal-purchase-input:focus,
.home-template-modal-purchase-submit:focus,
.home-template-modal-purchase-buy:focus {
  outline: none;
  border-color: #7aa2ff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.home-template-modal-purchase-submit:hover,
.home-template-modal-purchase-buy:hover {
  border-color: #bfd5ff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.home-template-modal-purchase-message {
  min-height: 20px;
  color: #2563eb;
  font-size: 13px;
  line-height: 1.5;
}

.home-template-modal-purchase-line.is-hidden {
  display: none;
}

.home-template-modal-handcopy {
  padding: 24px 28px 8px;
  display: grid;
  gap: 18px;
}

.home-template-modal-handcopy-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 300px);
  gap: 24px;
  align-items: start;
}

.home-template-modal-handcopy-preview {
  min-height: 320px;
  border-radius: 18px;
  border: 1px solid #e7ebf1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.home-template-modal-handcopy-preview img {
  display: block;
  width: min(100%, 340px);
  height: auto;
  object-fit: contain;
}

.home-template-modal-handcopy-sidebar {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.home-template-modal-handcopy-divider {
  width: 100%;
  height: 2px;
  background: #4c8bf5;
  margin-top: 2px;
}

.home-template-modal-handcopy-style-line {
  color: #2f3440;
  font-size: 15px;
  line-height: 1.7;
}

.home-template-modal-handcopy-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
  color: #2f3440;
  font-size: 15px;
  line-height: 1.7;
}

.home-template-modal-handcopy-purchase,
.home-template-modal-handcopy-sizes {
  min-width: 0;
}

.home-template-modal-handcopy-sizes {
  display: grid;
  gap: 8px;
}

.home-template-modal-handcopy-note,
.home-template-modal-handcopy-price-line,
.home-template-modal-handcopy-license,
.home-template-modal-handcopy-coupon-label,
.home-template-modal-handcopy-size-title {
  color: #2f3440;
  font-size: 15px;
  line-height: 1.7;
}

.home-template-modal-handcopy-note.is-hidden {
  display: none;
}

.home-template-modal-handcopy-price-line {
  margin-top: 12px;
}

.home-template-modal-handcopy-license {
  margin-top: 2px;
}

.home-template-modal-handcopy-coupon-label {
  margin-top: 8px;
}

.home-template-modal-handcopy-coupon-tip {
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
}

.home-template-modal-handcopy-coupon {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-template-modal-handcopy-coupon-input {
  width: 112px;
  height: 34px;
  border: 1px solid #d9e3f0;
  border-radius: 10px;
  background: #ffffff;
  padding: 0 12px;
  color: #1f2937;
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-template-modal-handcopy-coupon-submit,
.home-template-modal-handcopy-buy {
  height: 34px;
  border: 1px solid #d9e3f0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: #31507d;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-template-modal-handcopy-coupon-submit {
  width: 44px;
}

.home-template-modal-handcopy-buy {
  width: 64px;
  margin-top: 10px;
  background: linear-gradient(180deg, #f0f6ff 0%, #e0edff 100%);
  color: #1d4ed8;
  border-color: #bfd5ff;
}

.home-template-modal-handcopy-coupon-input:focus,
.home-template-modal-handcopy-coupon-submit:focus,
.home-template-modal-handcopy-buy:focus {
  outline: none;
  border-color: #7aa2ff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.home-template-modal-handcopy-coupon-submit:hover,
.home-template-modal-handcopy-buy:hover {
  border-color: #bfd5ff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.home-template-modal-handcopy-coupon-message {
  min-height: 20px;
  margin-top: 6px;
  color: #2563eb;
  font-size: 13px;
  line-height: 1.5;
}

.home-template-modal-handcopy-size-image-wrap {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 8px;
}

.home-template-modal-handcopy-size-image {
  display: block;
  width: 100%;
  height: auto;
}

.home-template-modal-payment {
  padding: 28px 28px 22px;
}

.home-template-modal-payment-card {
  width: min(100%, 860px);
  margin: 0 auto;
  border: 1px solid #e8edf3;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(47, 52, 64, 0.05);
  padding: 20px 24px 24px;
}

.home-template-modal-payment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef2f6;
}

.home-template-modal-payment-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-template-modal-payment-title-main {
  color: #2f3440;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}

.home-template-modal-payment-title-sub {
  color: #9aa3af;
  font-size: 12px;
  line-height: 1.4;
}

.home-template-modal-payment-body {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px;
  gap: 26px;
  align-items: start;
}

.home-template-modal-payment-left {
  display: grid;
  gap: 12px;
}

.home-template-modal-payment-info {
  border: 1px solid #dfe8f2;
  border-radius: 10px;
  background: #f6fbff;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}

.home-template-modal-payment-info-label {
  color: #63a3d8;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
}

.home-template-modal-payment-info-code {
  color: #374151;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0;
  word-break: break-word;
}

.home-template-modal-payment-info-meta {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.6;
}

.home-template-modal-payment-amount {
  border: 1px solid #d9e5f0;
  border-radius: 10px;
  background: #fbfdff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.home-template-modal-payment-amount-label {
  color: #4b5563;
  font-size: 14px;
  line-height: 1.4;
}

.home-template-modal-payment-amount-value {
  color: #2991e8;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
}

.home-template-modal-payment-tip {
  border: 1px solid #f2d08c;
  border-radius: 10px;
  background: #fff8e8;
  padding: 12px 14px;
  color: #d4881f;
  font-size: 12px;
  line-height: 1.5;
}

.home-template-modal-payment-qr {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 6px;
}

.home-template-modal-payment-qr-box {
  width: 184px;
  height: 184px;
  border: 1px solid #d6e2d8;
  border-radius: 6px;
  padding: 0;
  background:
    linear-gradient(90deg, transparent 0 10%, #1c7c3b 10% 14%, transparent 14% 18%, #1c7c3b 18% 22%, transparent 22% 100%),
    linear-gradient(transparent 0 12%, #1c7c3b 12% 16%, transparent 16% 22%, #1c7c3b 22% 26%, transparent 26% 100%),
    repeating-linear-gradient(0deg, #1c7c3b 0 6px, #ffffff 6px 12px),
    repeating-linear-gradient(90deg, #1c7c3b 0 6px, #ffffff 6px 12px);
  background-size: 100% 100%, 100% 100%, 22px 22px, 22px 22px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.home-template-modal-payment-qr-box.is-loading {
  cursor: progress;
}

.home-template-modal-payment-qr-box.is-ready {
  background: #ffffff;
}

.home-template-modal-payment-qr-box.is-error {
  background: linear-gradient(180deg, #fff7f7 0%, #fff2f2 100%);
  border-color: #f3c6c6;
}

.home-template-modal-payment-qr-box::before,
.home-template-modal-payment-qr-box::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  border: 5px solid #1c7c3b;
  background: #ffffff;
}

.home-template-modal-payment-qr-box::before {
  left: 12px;
  top: 12px;
  box-shadow: 0 0 0 96px rgba(255, 255, 255, 0.18);
}

.home-template-modal-payment-qr-box::after {
  right: 12px;
  top: 12px;
}

.home-template-modal-payment-qr-corner {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border: 5px solid #1c7c3b;
  background: #ffffff;
}

.home-template-modal-payment-qr-box.is-ready::before,
.home-template-modal-payment-qr-box.is-ready::after,
.home-template-modal-payment-qr-box.is-ready .home-template-modal-payment-qr-corner,
.home-template-modal-payment-qr-box.is-error::before,
.home-template-modal-payment-qr-box.is-error::after,
.home-template-modal-payment-qr-box.is-error .home-template-modal-payment-qr-corner {
  display: none;
}

.home-template-modal-payment-qr-render {
  position: absolute;
  inset: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background: transparent;
}

.home-template-modal-payment-qr-render img,
.home-template-modal-payment-qr-render canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.home-template-modal-payment-qr-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: #fff7f7;
  color: #c24141;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  padding: 12px;
}

.home-template-modal-payment-qr-status {
  min-height: 20px;
  color: #2563eb;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.home-template-modal-payment-qr-status.is-error {
  color: #dc2626;
}

.home-template-modal-payment-qr-status.is-success {
  color: #15803d;
}

.home-template-modal-payment-qr-note {
  color: #a0a8b6;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.home-template-modal-handcopy-verify {
  padding: 28px 28px 22px;
}

.home-template-modal-handcopy-verify-card {
  width: min(100%, 860px);
  min-height: 360px;
  margin: 0 auto;
  border: 1px solid #e8edf3;
  border-radius: 18px;
  background: #ffffff;
  padding: 42px 44px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.home-template-modal-handcopy-verify-form {
  width: min(100%, 264px);
  display: grid;
  gap: 12px;
}

.home-template-modal-handcopy-verify-label {
  color: #7b7b7b;
  font-size: 12px;
  line-height: 1.4;
}

.home-template-modal-handcopy-verify-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-template-modal-handcopy-verify-input {
  height: 34px;
  border: 1px solid #d9e3f0;
  border-radius: 10px;
  background: #ffffff;
  padding: 0 12px;
  color: #1f2937;
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-template-modal-handcopy-verify-input.long,
.home-template-modal-handcopy-verify-input.short {
  width: 156px;
}

.home-template-modal-handcopy-verify-code,
.home-template-modal-handcopy-verify-submit {
  height: 34px;
  border: 1px solid #d9e3f0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: #31507d;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-template-modal-handcopy-verify-code {
  width: 96px;
}

.home-template-modal-handcopy-verify-submit {
  width: 72px;
  margin-top: 2px;
  background: linear-gradient(180deg, #f0f6ff 0%, #e0edff 100%);
  color: #1d4ed8;
  border-color: #bfd5ff;
}

.home-template-modal-handcopy-verify-code,
.home-template-modal-handcopy-verify-submit {
  white-space: nowrap;
}

.home-template-modal-handcopy-verify-input:focus,
.home-template-modal-handcopy-verify-code:focus,
.home-template-modal-handcopy-verify-submit:focus {
  outline: none;
  border-color: #7aa2ff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.home-template-modal-handcopy-verify-code:hover,
.home-template-modal-handcopy-verify-submit:hover {
  border-color: #bfd5ff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.home-template-modal-payment-success {
  padding: 24px 28px 18px;
}

.home-template-modal-payment-success-card {
  width: min(100%, 860px);
  margin: 0 auto;
  border: 1px solid #eef1f5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(47, 52, 64, 0.05);
  padding: 26px 30px 30px;
}

.home-template-modal-payment-success-title {
  margin: 0 0 18px;
  color: #2f3440;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

.home-template-modal-payment-success-meta {
  display: grid;
  gap: 8px;
  color: #2f3440;
  font-size: 15px;
  line-height: 1.55;
}

.home-template-modal-payment-success-line {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px;
  align-items: start;
}

.home-template-modal-payment-success-label {
  font-weight: 600;
}

.home-template-modal-payment-success-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.home-template-modal-payment-success-link:hover {
  text-decoration: underline;
}

.home-template-modal-payment-success-link.is-disabled {
  color: #94a3b8;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none;
}

.home-template-modal-payment-success-note {
  margin: 30px 0 16px;
  color: #2f3440;
  font-size: 14px;
  line-height: 1.7;
}

.home-template-modal-payment-success-password-section.is-hidden {
  display: none;
}

.home-template-modal-payment-success-password {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.home-template-modal-payment-success-input,
.home-template-modal-payment-success-button {
  height: 34px;
  border: 1px solid #d9e3f0;
  border-radius: 10px;
  background: #ffffff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-template-modal-payment-success-input {
  width: 156px;
  padding: 0 12px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.06);
}

.home-template-modal-payment-success-button {
  width: 96px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: #31507d;
  cursor: pointer;
  white-space: nowrap;
}

.home-template-modal-payment-success-input:focus,
.home-template-modal-payment-success-button:focus {
  outline: none;
  border-color: #7aa2ff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.home-template-modal-payment-success-button:hover {
  border-color: #bfd5ff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.home-template-modal-custom {
  padding: 22px 26px 16px;
}

.home-template-modal-custom-form {
  display: grid;
  gap: 0;
}

.home-template-modal-custom-card {
  width: min(100%, 860px);
  margin: 0 auto;
  border: 1px solid #eef1f5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(47, 52, 64, 0.05);
  padding: 24px 28px 22px;
}

.home-template-modal-custom-tip {
  margin: 0 0 12px;
  color: #7180cf;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.home-template-modal-custom-message {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.home-template-modal-custom-message.is-hidden {
  display: none;
}

.home-template-modal-custom-message.success {
  background: #ecfdf5;
  color: #166534;
}

.home-template-modal-custom-message.error {
  background: #fef2f2;
  color: #991b1b;
}

.home-template-modal-custom-fields {
  display: grid;
  gap: 10px;
}

.home-template-modal-custom-label {
  color: #2f3440;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.home-template-modal-custom-input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d8dde6;
  border-radius: 12px;
  padding: 10px 12px;
  background: #ffffff;
  color: #2f3440;
  font: inherit;
}

.home-template-modal-custom-input:focus {
  outline: none;
  border-color: #7aa2ff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
  caret-color: #2563eb;
}

.home-template-modal-custom-input.tall {
  min-height: 88px;
  resize: vertical;
}

.home-template-modal-custom-contact {
  width: min(100%, 360px);
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.home-template-modal-custom-contact-label {
  color: #9aa0c8;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.home-template-modal-custom-contact-input {
  width: 156px;
  min-height: 34px;
  border: 1px solid #d9e3f0;
  border-radius: 10px;
  padding: 0 12px;
  background: #ffffff;
  color: #1f2937;
  font-size: 13px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-template-modal-custom-contact-input.long {
  width: 100%;
}

.home-template-modal-custom-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-template-modal-custom-code-button,
.home-template-modal-custom-submit {
  min-height: 34px;
  border: 1px solid #d9e3f0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: #31507d;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-template-modal-custom-code-button {
  width: 96px;
}

.home-template-modal-custom-submit {
  width: 72px;
  border-color: #bfd5ff;
  background: linear-gradient(180deg, #f0f6ff 0%, #e0edff 100%);
  color: #1d4ed8;
}

.home-template-modal-custom-contact-input:focus,
.home-template-modal-custom-code-button:focus,
.home-template-modal-custom-submit:focus {
  outline: none;
  border-color: #7aa2ff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.home-template-modal-custom-code-button:hover,
.home-template-modal-custom-submit:hover {
  border-color: #bfd5ff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.home-template-modal-footer {
  padding: 10px 16px 12px;
  border-top: 1px solid #eef1f5;
  background: #fafafa;
}

.home-template-modal-footer.is-hidden {
  display: none;
}

.home-template-modal-section-title {
  margin: 0 0 8px;
  color: #2f3440;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}

.home-template-modal-related-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72px, 88px);
  justify-content: start;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.home-template-modal-related-item {
  padding: 0;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s ease;
}

.home-template-modal-related-item:hover {
  transform: translateY(-1px);
  border-color: #bfd4fb;
  box-shadow: 0 6px 14px rgba(47, 52, 64, 0.06);
}

.home-template-modal-related-item:focus-visible {
  outline: 2px solid #4c8bf5;
  outline-offset: 2px;
}

.home-template-modal-related-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #ffffff;
}

.home-page.home-modal-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .home-content-shell {
    width: calc(100vw - 32px);
  }

  .home-content-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .home-template-modal {
    padding: 18px;
  }

  .home-template-modal-panel {
    width: min(100vw - 36px, 1040px);
    max-height: calc(100vh - 36px);
  }

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

  .home-template-modal-stage {
    padding: 22px 22px 16px;
  }

  .home-template-modal-figure {
    width: min(100%, 500px);
  }

  .home-template-modal-sidebar {
    padding: 24px 22px 22px;
    border-left: 0;
    border-top: 1px solid #eef1f5;
  }

  .home-template-modal-title {
    font-size: 15px;
  }

  .home-template-modal-footer {
    padding: 10px 14px 12px;
  }
}

@media (max-width: 640px) {
  .home-create-card {
    min-height: 260px;
  }

  .home-template-card {
    min-height: 380px;
  }

  .home-create-visual {
    min-height: 168px;
  }

  .home-create-sheet-back {
    left: 50%;
    top: 8px;
    width: 120px;
    height: 148px;
    margin-left: -40px;
  }

  .home-create-sheet {
    width: 128px;
    height: 166px;
  }

  .home-create-sheet-front {
    top: 18px;
  }

  .home-create-badge {
    top: 98px;
    width: 54px;
    height: 54px;
    margin-left: -27px;
  }

  .home-create-badge::before {
    width: 20px;
  }

  .home-create-badge::after {
    height: 20px;
  }

  .home-create-lines {
    left: 14px;
    right: 14px;
    top: 74px;
    gap: 8px;
  }

  .home-create-title {
    font-size: 32px;
  }

  .home-create-desc {
    font-size: 14px;
    line-height: 1.6;
  }

  .home-content-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .home-template-title,
  .home-template-stat {
    font-size: 13px;
  }

  .home-template-modal {
    padding: 0;
  }

  .home-template-modal-panel {
    width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }

  .home-template-modal-stage {
    padding: 54px 14px 14px;
  }

  .home-template-modal-figure {
    width: min(100%, 340px);
    padding: 10px;
    border-radius: 14px;
  }

  .home-template-modal-figure-gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .home-template-modal-arrow {
    right: 8px;
  }

  .home-template-modal-sidebar {
    padding: 18px 14px 16px;
  }

  .home-template-modal-title {
    font-size: 15px;
  }

  .home-template-modal-spec {
    font-size: 14px;
  }

  .home-template-modal-footer {
    padding: 10px 12px 12px;
  }

  .home-template-modal-related-grid {
    grid-auto-columns: minmax(64px, 76px);
  }
}

@media (max-width: 520px) {
  .home-content-layout {
    grid-template-columns: 1fr;
  }

  .home-pagination-shell {
    width: calc(100vw - 32px);
    gap: 6px;
    margin: 0 auto 40px;
  }

  .home-pagination-item,
  .home-pagination-arrow,
  .home-pagination-ellipsis {
    min-width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .home-template-modal-related-grid {
    grid-auto-columns: minmax(58px, 70px);
  }
}
