/* ══════════════════════════════════════════════════════
   JITSUIN CREATE — create.css
   Styles for the seal creation flow.
   Inherits design tokens from style.css.
   ══════════════════════════════════════════════════════ */

/* ─── PAGE SHELL ─── */
.create-page {
  background: #f2f2f0;
  min-height: 100vh;
}

.create-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2.5rem;
  background: var(--gray-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.create-nav .subpage-back {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  padding: 0;
}
.create-nav .subpage-back:hover { color: var(--teal-light); }
.create-nav-right { display: flex; align-items: center; gap: 1rem; }
.create-step-label {
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* ─── TWO-COLUMN WRAPPER ─── */
.create-wrapper {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: calc(100vh - 1.8rem);
  padding-top: 1.8rem; /* height of lang-bar */
}

/* ══════════════════════════════════════
   PREVIEW PANEL (left, fixed)
══════════════════════════════════════ */
.preview-panel {
  position: sticky;
  top: 1.8rem;
  height: calc(100vh - 1.8rem);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.preview-panel-inner {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}
.preview-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #3a3a3a;
  margin-bottom: -0.5rem;
}

/* ─── JITSUIN / SOA / DATE DISPLAY BLOCKS ─── */
.jitsuin-display-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.jd-row-label {
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-dark);
  font-family: 'Courier New', monospace;
}
.jd-kanji-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.jd-char {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 42px;
  background: #a80e0e;
  border-radius: 5px;
  padding: 5px;
		

}
.jd-kanji {
  font-family: var(--jp);
  font-size: 1.9rem;
  font-weight: 300;
  color: #ffffff;
  line-height: 1;
  display: block;
}
.jd-hex {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,1);
  text-transform: uppercase;
  display: block;
}

/* ─── COLOUR SWATCH ROW ─── */
.preview-color-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.preview-color-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-dark);
  flex: 1;
}
.preview-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  flex: 0 0 auto;
  transition: background 0.3s;
}
.preview-color-hex {
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  color: var(--gray-dark);
  letter-spacing: 0.05em;
}

/* ─── SEAL MOCK ─── */
.seal-mock {
  border: 1px solid;
  border-radius: 3px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: rgba(255,255,255,1);
}
.seal-mock-kanji {
  display: flex;
  gap: 0.5rem;
  font-family: var(--jp);
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  transition: color 0.3s;
}
.seal-mock-code {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  transition: color 0.3s;
  color: var(--gray-dark);
}
.seal-mock-verified {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-dark);
}
.seal-verified-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  animation: blink-dot 2s ease-in-out infinite;
}

/* ─── OLI HASH ─── */
.oli-display {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.oli-label {
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  font-family: 'Courier New', monospace;
}
.oli-hash {
  font-family: 'Courier New', monospace;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  word-break: break-all;
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════
   FORM PANEL (right)
══════════════════════════════════════ */
.form-panel {
  padding: 3rem 4rem 6rem;
  max-width: 760px;
}

/* ─── STEP PROGRESS ─── */
.step-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 3.5rem;
}
.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: default;
}
.step-dot span {
  font-family: var(--jp);
  font-size: 1.1rem;
  font-weight: 300;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-pale);
  color: var(--gray-pale);
  transition: all 0.3s;
}
.step-dot small {
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-pale);
  transition: color 0.3s;
}
.step-dot.active span {
  border-color: #a80e0e;
  background: #a80e0e;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(168,14,14,0.12);
}
.step-dot.active small { color: #a80e0e; }
.step-dot.complete span {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}
.step-dot.complete small { color: var(--teal); }
.step-line {
  flex: 1;
  height: 1px;
  background: var(--gray-bg);
  margin: 0 0.5rem;
  margin-bottom: 1.4rem;
}

/* ─── FORM STEPS ─── */
.form-step { display: none; }
.form-step.active { display: block; }

.step-header { margin-bottom: 2.5rem; }
.step-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--gray-dark);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.step-sub {
  font-size: 0.9rem;
  color: var(--gray-mid);
  line-height: 1.75;
  max-width: 520px;
}

/* ─── VERIFICATION CARDS ─── */
.verification-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.verif-card {
  cursor: pointer;
  border-radius: 3px;
  border: 1px solid var(--gray-bg);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}
.verif-card input[type="radio"] { display: none; }
.verif-card:hover { border-color: var(--gray-pale); }
.verif-card.selected {
  border-color: #a80e0e;
  box-shadow: 0 0 0 3px rgba(168,14,14,0.08);
}
.verif-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
}
.verif-kanji {
  font-family: var(--jp);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--teal);
  line-height: 1;
  flex: 0 0 auto;
}
.verif-card.selected .verif-kanji { color: #a80e0e; }
.verif-info h3 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-dark);
  margin-bottom: 0.35rem;
}
.verif-info p {
  font-size: 0.8rem;
  color: var(--gray-mid);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}
.verif-price-tag {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--teal-ghost);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  display: inline-block;
}

/* ─── PHYSICAL ADD-ON ─── */
.addon-block {
  margin-bottom: 2rem;
}
.addon-toggle {
  cursor: pointer;
  display: block;
  border: 1px solid var(--gray-bg);
  background: var(--white);
  border-radius: 3px;
  transition: border-color 0.2s;
}
.addon-toggle:has(input:checked) {
  border-color: #b8963e;
  box-shadow: 0 0 0 3px rgba(184,150,62,0.08);
}
.addon-toggle input { display: none; }
.addon-toggle-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}
.addon-kanji {
  font-family: var(--jp);
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
  flex: 0 0 auto;
}
.addon-info { flex: 1; }
.addon-info h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-dark);
  margin-bottom: 0.2rem;
}
.addon-info p {
  font-size: 0.8rem;
  color: var(--gray-mid);
  line-height: 1.5;
}
.addon-price {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: #b8963e;
  white-space: nowrap;
}

/* ─── STEP FOOTER ─── */
.step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-bg);
  gap: 1rem;
}
.price-summary {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.price-summary-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-light);
}
.price-summary-amount {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gray-dark);
  line-height: 1;
}

/* ─── FORM FIELDS ─── */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field-label {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gray-dark);
}
.field-optional {
  font-size: 0.72rem;
  color: var(--gray-light);
  font-weight: 300;
}
.field-input {
  padding: 0.75rem 1rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--gray-dark);
  background: var(--white);
  border: 1px solid var(--gray-bg);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field-input:focus {
  border-color: #a80e0e;
  box-shadow: 0 0 0 3px rgba(168,14,14,0.07);
}
.field-select { cursor: pointer; }
.field-mono { font-family: 'Courier New', monospace; font-size: 0.82rem; }
.field-hint {
  font-size: 0.75rem;
  color: var(--gray-light);
  line-height: 1.55;
}

/* ─── STEP 3: GENERATED CHARACTERS ─── */
.generated-seal-row {
  background: var(--white);
  border: 1px solid var(--gray-bg);
  border-radius: 3px;
  padding: 2rem;
  margin-bottom: 2rem;
}
.gen-seal-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 1rem;
}
.gen-seal-chars {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.gen-char {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.gen-kanji {
  font-family: var(--jp);
  font-size: 3rem;
  font-weight: 300;
  color: var(--teal);
  line-height: 1;
}
.gen-hex {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--gray-light);
  text-transform: uppercase;
}
.gen-seal-note {
  font-size: 0.78rem;
  color: var(--gray-light);
  line-height: 1.6;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-bg);
}

/* ─── COLOUR PICKER ─── */
.color-section { margin-bottom: 1rem; }
.color-section-label {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gray-dark);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}
.color-presets {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.color-preset {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
  outline: none;
}
.color-preset:hover { transform: scale(1.15); }
.color-preset.active {
  border-color: var(--gray-dark);
  transform: scale(1.15);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--gray-dark);
}
.color-custom-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.color-custom-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
input[type="color"] {
  width: 42px; height: 42px;
  padding: 2px;
  border: 1px solid var(--gray-bg);
  border-radius: 2px;
  cursor: pointer;
  flex: 0 0 auto;
  background: var(--white);
}

/* ─── STEP 4: ORDER SUMMARY ─── */
.order-summary {
  background: var(--white);
  border: 1px solid var(--gray-bg);
  border-radius: 3px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--gray-bg);
  gap: 1rem;
}
.order-row:last-child { border-bottom: none; }
.order-key {
  font-size: 0.8rem;
  color: var(--gray-mid);
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}
.order-val {
  font-size: 0.88rem;
  color: var(--gray-dark);
  text-align: right;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.order-mono { font-family: 'Courier New', monospace; font-size: 0.82rem; }
.order-divider { height: 1px; background: var(--gray-bg); margin: 0; border: none; }
.order-row-total {
  background: #fafafa;
  padding: 1.1rem 1.5rem;
}
.order-total-amount {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: #a80e0e;
}
.summary-swatch {
  width: 14px; height: 14px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: inline-block;
  border: 1px solid var(--gray-bg);
}

/* ─── PAYLOAD DETAILS ─── */
.payload-details {
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray-bg);
  border-radius: 2px;
  background: var(--white);
}
.payload-details summary {
  padding: 0.75rem 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--gray-mid);
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.payload-details summary::-webkit-details-marker { display: none; }
.payload-details summary::before { content: '+ '; }
.payload-details[open] summary::before { content: '− '; }
.payload-pre {
  padding: 1rem 1.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: var(--gray-mid);
  line-height: 1.7;
  border-top: 1px solid var(--gray-bg);
  overflow-x: auto;
  white-space: pre;
}

/* ─── RECAPTCHA ─── */
.recaptcha-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-bg);
  border-radius: 3px;
}
.recaptcha-note {
  font-size: 0.72rem;
  color: var(--gray-light);
  line-height: 1.55;
}

/* ─── TERMS ─── */
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--gray-mid);
  line-height: 1.6;
  cursor: pointer;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-bg);
  border-radius: 2px;
}
.terms-row input[type="checkbox"] {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  accent-color: #a80e0e;
  width: 16px; height: 16px;
  cursor: pointer;
}

/* ─── STATUS MESSAGES ─── */
.submit-status {
  padding: 1rem 1.25rem;
  border-radius: 2px;
  font-size: 0.85rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.submit-status--error {
  background: rgba(168,14,14,0.08);
  border-left: 3px solid #a80e0e;
  color: #a80e0e;
}
.submit-status--info {
  background: var(--teal-ghost);
  border-left: 3px solid var(--teal);
  color: var(--teal-deep);
}
.submit-status--success {
  background: rgba(45,122,122,0.08);
  border-left: 3px solid var(--teal);
  color: var(--teal-deep);
}

/* ─── SUCCESS SCREEN ─── */
.success-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem 0;
}
.success-kanji {
  font-family: var(--jp);
  font-size: 5rem;
  font-weight: 300;
  color: var(--teal);
  line-height: 1;
  opacity: 0.4;
}
.success-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--gray-dark);
  line-height: 1.2;
}
.success-sub {
  font-size: 0.95rem;
  color: var(--gray-mid);
  line-height: 1.75;
  max-width: 500px;
}
.success-tx {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-bg);
  border-radius: 2px;
}
.success-tx-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-light);
}
.success-tx-val {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--gray-dark);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .create-wrapper {
    grid-template-columns: 300px 1fr;
  }
  .form-panel { padding: 2.5rem 2.5rem 5rem; }
}
@media (max-width: 768px) {
  .create-wrapper {
    grid-template-columns: 1fr;
  }
  .preview-panel {
    position: relative;
    top: auto;
    height: auto;
    min-height: unset;
  }
  .form-panel { padding: 2rem 1.5rem 4rem; max-width: 100%; }
  .verification-grid { grid-template-columns: 1fr; }
  .step-progress { gap: 0; }
}
