/* Visual polish for the redeem page; layout and behaviour stay in redeem-simple-v1.css. */
.simple-redeem {
  --polish-accent: #8b4b32;
  --polish-accent-2: #c2410c;
  --polish-line: #eadfd6;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 520px at 50% -180px, #f3e4d6 0%, rgba(243, 228, 214, 0) 70%),
    var(--coco-paper);
}
.simple-redeem h1 { font-weight: 700; letter-spacing: -0.02em; }
.simple-redeem .form-content {
  background: #fff;
  border: 1px solid var(--polish-line);
  border-radius: 20px;
  padding: 32px 32px 28px;
  box-shadow: 0 24px 60px -32px rgba(90, 45, 20, 0.28);
}
.simple-redeem input:not([type="checkbox"]), .simple-redeem textarea {
  border-radius: 12px;
  border: 1px solid var(--polish-line);
  background: #fffdfb;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.simple-redeem input:not([type="checkbox"]):focus, .simple-redeem textarea:focus {
  border-color: var(--polish-accent);
  box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.12);
  outline: none;
}
.simple-redeem button.primary {
  border-radius: 12px;
  background: linear-gradient(135deg, var(--polish-accent) 0%, var(--polish-accent-2) 100%);
  box-shadow: 0 12px 24px -14px rgba(194, 65, 12, 0.75);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.simple-redeem button.primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 16px 28px -14px rgba(194, 65, 12, 0.8); }
.simple-redeem button.primary:active:not(:disabled) { transform: translateY(0); }
.simple-redeem .trust-strip {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none;
}
.simple-redeem .trust-strip li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: #fbf3ec; color: #7a4a33; font-size: 12.5px; line-height: 1;
}
.simple-redeem .trust-strip li::before { content: "✓"; font-weight: 700; color: var(--polish-accent-2); }
.simple-redeem #review-card { border-radius: 14px; }
.simple-redeem progress { border-radius: 999px; overflow: hidden; }
.simple-redeem dialog { border-radius: 18px; }
@media (max-width: 560px) {
  .simple-redeem .form-content { padding: 22px 18px 20px; border-radius: 16px; }
}

/* Numbered credential instructions on the account step. */
.simple-redeem .cred-steps { margin: 4px 0 14px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.simple-redeem .cred-steps li { position: relative; padding-left: 34px; font-size: 13.5px; line-height: 1.7; color: #4a3b31; counter-increment: step; }
.simple-redeem .cred-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fbf3ec; color: var(--polish-accent-2); font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
.simple-redeem .step-tip { display: block; margin-top: 2px; font-size: 12px; color: var(--muted, #8a7a6e); }
.simple-redeem .url-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 6px 0 2px; padding: 8px 10px; border-radius: 10px;
  background: #faf6f2; border: 1px solid var(--polish-line);
}
.simple-redeem .url-row code {
  flex: 1 1 220px; min-width: 0; word-break: break-all;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; color: #3b2a20;
}
.simple-redeem .url-row a, .simple-redeem .url-row .copy-url {
  flex: none; padding: 4px 10px; border-radius: 8px; font-size: 12px; line-height: 1.6; cursor: pointer;
  border: 1px solid var(--polish-line); background: #fff; color: var(--polish-accent-2); text-decoration: none;
}
.simple-redeem .url-row a:hover, .simple-redeem .url-row .copy-url:hover { border-color: var(--polish-accent-2); }
.simple-redeem .url-actions { display: inline-flex; gap: 8px; flex: none; }

/* Header: Telegram notification channel pill next to the store link. */
.simple-redeem .header-actions { display: flex; align-items: center; gap: 14px; }
.simple-redeem .channel-pill {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 16px;
  border: 1px solid #e7cbb9; border-radius: 999px; background: var(--coco-tint);
  color: var(--polish-accent); font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
  text-decoration: none; box-shadow: 0 1px 2px #8b4b3212;
  transition: background .18s, border-color .18s, transform .18s;
}
.simple-redeem .channel-pill svg { width: 16px; height: 16px; flex: none; }
.simple-redeem .channel-pill:hover { background: #efdccf; border-color: #d9b39c; transform: translateY(-1px); }
.simple-redeem .channel-pill:focus-visible { outline: 2px solid var(--polish-accent); outline-offset: 2px; }
@media (max-width: 600px) {
  .simple-redeem .header-actions { gap: 10px; }
  .simple-redeem .channel-pill { min-height: 34px; padding: 0 12px; font-size: 13px; gap: 6px; }
}
@media (max-width: 420px) {
  /* "前往购买" is repeated under the code box; keep the header on one line. */
  .simple-redeem .header-actions .store-link { display: none; }
}
