/* XImageViewer English store: buy / success / find / resend */

.xiv-store-body {
  background: #f7f9fc;
}

.xiv-store-header .xiv-header-inner {
  justify-content: space-between;
}

.xiv-store-nav {
  margin-left: auto;
  margin-right: 0;
}

.xiv-store-download {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  color: var(--xiv-brand) !important;
  font-weight: 700 !important;
}

.xiv-store-main {
  padding-bottom: 2.5rem;
  min-height: calc(100vh - 160px);
}

.xiv-store-hero {
  padding: 2.25rem 0 1.25rem;
  text-align: center;
}

.xiv-store-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
}

.xiv-store-hero p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--xiv-muted);
}

.xiv-find-hero {
  padding-bottom: 1.5rem;
}

.xiv-find-shell {
  max-width: 720px;
  margin-bottom: 2rem;
}

.xiv-find-card {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.xiv-find-card .xiv-license-head {
  margin-bottom: 1.5rem;
}

.xiv-find-card .xiv-btn {
  margin-top: 1rem;
}

.xiv-find-feedback {
  margin: 0.5rem 0 0;
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 600;
}

.xiv-find-card input[aria-invalid="true"] {
  border-color: #dc2626;
  outline: 2px solid #fee2e2;
}

.xiv-find-success {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  background: #ecfdf5;
  color: #065f46;
}

.xiv-find-success[hidden] {
  display: none;
}

.xiv-find-success svg {
  flex: 0 0 auto;
  margin-top: 0.05rem;
}

.xiv-find-success strong {
  display: block;
  margin-bottom: 0.15rem;
}

.xiv-find-success p,
.xiv-find-footer p {
  margin: 0;
}

.xiv-find-success p {
  color: #047857;
  font-size: 0.88rem;
  line-height: 1.5;
}

.xiv-find-footer {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--xiv-line);
  color: var(--xiv-muted);
  font-size: 0.85rem;
}

.xiv-find-footer p:first-child {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.xiv-find-footer svg {
  flex: 0 0 auto;
  color: var(--xiv-brand);
}

.xiv-find-footer a {
  color: var(--xiv-brand);
  font-weight: 700;
}

.xiv-store-hero-center .xiv-hero-mail-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
  border-radius: 14px;
  background: var(--xiv-brand-soft);
  color: var(--xiv-brand);
  display: grid;
  place-items: center;
}

.xiv-store-hero-center .xiv-hero-mail-icon svg {
  width: 26px;
  height: 26px;
}

.xiv-store-banner-warn {
  margin-top: 1rem !important;
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.xiv-store-card {
  background: #fff;
  border: 1px solid var(--xiv-line);
  border-radius: 18px;
  padding: 1.5rem 1.45rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.xiv-store-card h2,
.xiv-store-card h3 {
  margin: 0 0 0.35rem;
}

.xiv-buy-grid,
.xiv-find-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.xiv-buy-license-head,
.xiv-license-head {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.xiv-buy-price {
  margin: 0.15rem 0;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--xiv-brand);
  letter-spacing: -0.02em;
}

.xiv-trial-banner {
  margin: 0.75rem 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--xiv-ink, #0f172a);
}

.xiv-trial-note {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.xiv-buy-plans {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
}

.xiv-buy-email-wrap {
  max-width: 28rem;
  margin-bottom: 0.35rem;
}

.xiv-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.25rem 0 1rem;
}

.xiv-plan-card {
  position: relative;
}

.xiv-plan-card-featured {
  border-color: color-mix(in srgb, var(--xiv-brand) 45%, #cbd5e1);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.xiv-plan-card .xiv-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
}

.xiv-config-error {
  border-color: #fca5a5;
  background: #fff7f7;
  margin-bottom: 1.25rem;
}

.xiv-config-error h2 {
  color: #991b1b;
}

@media (max-width: 900px) {
  .xiv-plan-grid {
    grid-template-columns: 1fr;
  }
}

.xiv-store-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--xiv-brand-soft);
  color: var(--xiv-brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.xiv-store-icon svg {
  width: 22px;
  height: 22px;
}

.xiv-store-icon-sm {
  width: 40px;
  height: 40px;
}

.xiv-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}

.xiv-input-icon {
  position: relative;
}

.xiv-input-icon svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.xiv-input-icon input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.8rem 0.9rem 0.8rem 2.5rem;
  font: inherit;
  background: #fff;
}

.xiv-input-icon input:focus {
  outline: 2px solid #bfdbfe;
  border-color: var(--xiv-brand);
}

.xiv-input-icon input[readonly] {
  background: #f8fafc;
  color: var(--xiv-muted);
}

.xiv-help {
  margin: 0.45rem 0 1rem;
  color: var(--xiv-muted);
  font-size: 0.85rem;
}

.xiv-check-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.xiv-check-list li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--xiv-muted);
  font-size: 0.95rem;
}

.xiv-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--xiv-brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232563eb' d='M9.5 16.2 5.8 12.5l1.4-1.4 2.3 2.3 5.6-5.6 1.4 1.4z'/%3E%3C/svg%3E") center/0.85rem no-repeat;
}

.xiv-secure-note {
  margin: 0.85rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--xiv-muted);
  font-size: 0.82rem;
  justify-content: center;
}

.xiv-find-hint {
  display: block;
  text-align: left;
  line-height: 1.5;
  margin-top: 1rem;
}

.xiv-form-error {
  margin: 0.75rem 0 0;
  color: #b91c1c;
  font-size: 0.9rem;
}

.xiv-form-ok {
  margin: 0.75rem 0 0;
  color: #047857;
  font-size: 0.92rem;
}

.xiv-muted {
  color: var(--xiv-muted);
  margin: 0;
  font-size: 0.9rem;
}

.xiv-summary-product {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 1rem 0 1.1rem;
}

.xiv-summary-product img {
  border-radius: 10px;
}

.xiv-summary-product strong {
  display: block;
}

.xiv-summary-product span {
  color: var(--xiv-muted);
  font-size: 0.85rem;
}

.xiv-summary-row,
.xiv-summary-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--xiv-line);
}

.xiv-summary-total {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.xiv-summary-total strong {
  color: var(--xiv-brand);
}

.xiv-secure-box {
  display: flex;
  gap: 0.7rem;
  padding: 0.9rem;
  border-radius: 12px;
  background: var(--xiv-brand-soft);
  color: var(--xiv-brand);
  margin-bottom: 1rem;
}

.xiv-secure-box strong {
  display: block;
  color: var(--xiv-ink);
  margin-bottom: 0.15rem;
}

.xiv-secure-box p {
  margin: 0;
  color: var(--xiv-muted);
  font-size: 0.85rem;
}

.xiv-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.xiv-trust-list li strong {
  display: block;
  font-size: 0.92rem;
}

.xiv-trust-list li span {
  color: var(--xiv-muted);
  font-size: 0.85rem;
}

.xiv-info-banner {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  margin-bottom: 1rem;
}

.xiv-info-banner p {
  margin: 0;
  font-size: 0.92rem;
}

.xiv-info-banner-row {
  align-items: center;
  justify-content: space-between;
}

.xiv-buy-plans + .xiv-container {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.xiv-info-banner > .xiv-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.xiv-info-banner-copy {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.xiv-store-links {
  text-align: center;
  color: var(--xiv-muted);
  margin: 0 0 1rem;
}

.xiv-store-links a {
  color: var(--xiv-brand);
  font-weight: 700;
}

.xiv-store-foot {
  padding: 1.25rem 0 1.75rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

.xiv-store-foot p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.xiv-store-foot a {
  color: var(--xiv-brand);
  font-weight: 700;
}

.xiv-sep {
  opacity: 0.5;
  margin: 0 0.15rem;
}

/* Success */
.xiv-success-wrap {
  max-width: 760px;
  padding-top: 2rem;
}

.xiv-success-status {
  text-align: center;
  margin-bottom: 1.5rem;
}

.xiv-success-check-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
}

.xiv-success-check {
  width: 72px;
  height: 72px;
  margin: 8px auto 0;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.28);
}

.xiv-success-check svg {
  width: 42px;
  height: 42px;
  display: block;
  overflow: visible;
}

.xiv-success-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  opacity: 0.85;
}

.xiv-success-spark-a {
  top: 6px;
  left: 10px;
  background: #86efac;
}

.xiv-success-spark-b {
  top: 4px;
  right: 14px;
  width: 6px;
  height: 6px;
  background: #93c5fd;
}

.xiv-success-spark-c {
  bottom: 14px;
  left: 4px;
  width: 5px;
  height: 5px;
  background: #93c5fd;
}

.xiv-success-spark-d {
  bottom: 10px;
  right: 8px;
  width: 7px;
  height: 7px;
  background: #86efac;
}

.xiv-success-status h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.85rem, 3.5vw, 2.15rem);
  letter-spacing: -0.02em;
  color: #0f172a;
}

.xiv-success-lead {
  margin: 0 auto;
  max-width: none;
  color: var(--xiv-muted);
  font-size: 1rem;
  line-height: 1.55;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .xiv-success-lead {
    white-space: normal;
  }
}

.xiv-success-lead strong {
  color: #0f172a;
  font-weight: 700;
}

.xiv-license-card,
.xiv-success-card {
  margin-bottom: 1rem;
}

.xiv-success-card {
  padding: 1.55rem 1.5rem 1.65rem;
}

.xiv-success-key-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.xiv-success-key-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.xiv-plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

.xiv-plan-badge-lite {
  background: #dcfce7;
  color: #15803d;
}

.xiv-plan-badge-pro {
  background: #dbeafe;
  color: #1d4ed8;
}

.xiv-license-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1rem 1rem 1.15rem;
  border-radius: 14px;
  background: #f0f7ff;
  border: 1.5px dashed #93c5fd;
  margin-bottom: 0.75rem;
}

.xiv-license-code {
  flex: 1;
  margin: 0;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0f172a;
  overflow-x: auto;
  background: transparent;
  border: none;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.xiv-copy-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--xiv-brand);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.xiv-copy-btn:hover {
  background: rgba(37, 99, 235, 0.1);
}

.xiv-copy-btn.is-copied {
  color: #16a34a;
}

.xiv-license-row {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
  margin-bottom: 0.85rem;
}

.xiv-license-row code {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1e3a8a;
  overflow-x: auto;
}

.xiv-license-hint {
  margin: 0 0 1rem;
}

.xiv-success-divider {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 0 0 1rem;
}

.xiv-email-sent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--xiv-muted);
  font-size: 0.95rem;
  margin: 0 0 1.35rem;
  line-height: 1.45;
}

.xiv-email-sent svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--xiv-brand);
}

.xiv-email-sent strong {
  color: #0f172a;
  font-weight: 700;
}

.xiv-next-steps {
  margin-bottom: 2.25rem;
}

.xiv-next-steps h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  color: #0f172a;
}

.xiv-next-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.xiv-next-steps-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.85rem;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 550;
  line-height: 1.35;
}

.xiv-next-steps-list li:first-child {
  padding-left: 0;
}

.xiv-next-steps-list li:last-child {
  padding-right: 0;
}

.xiv-next-steps-list li + li {
  border-left: 1px solid #e2e8f0;
}

.xiv-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dbeafe;
  color: var(--xiv-brand);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.xiv-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.xiv-license-card .xiv-success-actions,
.xiv-success-card .xiv-success-actions {
  margin-top: 0;
}

.xiv-btn-recover {
  border-color: #93c5fd;
  color: var(--xiv-brand);
}

.xiv-btn-recover:hover {
  border-color: var(--xiv-brand);
  color: var(--xiv-brand);
  background: var(--xiv-brand-soft);
}

.xiv-resend-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.xiv-resend-strip-copy {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.xiv-success-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0.25rem 1rem;
}

.xiv-success-meta .xiv-muted {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
}

.xiv-need-help {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--xiv-brand);
}

.xiv-need-help a {
  color: var(--xiv-brand);
  font-weight: 600;
  font-size: 0.92rem;
}

.xiv-success-pending {
  text-align: center;
  padding: 2rem 1.5rem;
}

.xiv-success-pending h1 {
  margin-top: 0;
}

.xiv-success-pending .xiv-success-actions {
  justify-content: center;
  margin-top: 1.25rem;
}

/* Find / resend */
.xiv-steps {
  list-style: none;
  margin: 1rem 0 1.15rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.xiv-steps li {
  display: flex;
  gap: 0.75rem;
}

.xiv-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--xiv-brand-soft);
  color: var(--xiv-brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.xiv-step-icon svg {
  width: 18px;
  height: 18px;
}

.xiv-steps strong {
  display: block;
  margin-bottom: 0.15rem;
}

.xiv-steps p {
  margin: 0;
  color: var(--xiv-muted);
  font-size: 0.88rem;
}

.xiv-tips {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.xiv-tips li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--xiv-muted);
  font-size: 0.92rem;
}

.xiv-tips svg {
  flex-shrink: 0;
  color: var(--xiv-brand);
  margin-top: 0.1rem;
}

.xiv-cooldown {
  margin: 0.75rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--xiv-muted);
  font-size: 0.85rem;
  justify-content: center;
}

.xiv-alert-ok {
  margin: 0.9rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.92rem;
}

.xiv-back-wrap {
  text-align: center;
  margin: 0.5rem 0 1rem;
}

@media (max-width: 900px) {
  .xiv-buy-grid,
  .xiv-find-grid {
    grid-template-columns: 1fr;
  }

  .xiv-resend-strip,
  .xiv-info-banner-row {
    flex-direction: column;
    align-items: stretch;
  }

  .xiv-license-row {
    flex-direction: column;
  }

  .xiv-next-steps-list {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .xiv-next-steps-list li {
    padding: 0;
  }

  .xiv-next-steps-list li + li {
    border-left: none;
  }

  .xiv-success-actions {
    flex-direction: column;
  }

  .xiv-success-actions .xiv-btn {
    width: 100%;
  }
}
