/* ==========================================================================
   Code redemption page (/redeem/, inc/redeem.php) and the account page
   (/account/, inc/account.php). Fields match the contact form.
   ========================================================================== */

.wd .wd-redeem-hero { padding-bottom: 16px; }
.wd .wd-redeem { padding: 32px; }
.wd .wd-redeem h2 { font-size: 1.5rem; margin: 0 0 10px; letter-spacing: -.02em; }
.wd .wd-redeem h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.wd .wd-redeem p { margin: 0 0 12px; color: var(--wd-ink-2); line-height: 1.6; }
.wd .wd-redeem ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 8px; color: var(--wd-ink-2); line-height: 1.6; }
.wd .wd-redeem a { color: var(--wd-primary); font-weight: 600; }

.wd .wd-redeem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wd .wd-redeem__field { display: block; min-width: 0; }
.wd .wd-redeem__field.is-wide { grid-column: 1 / -1; }
.wd .wd-redeem__field > span { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 6px; color: var(--wd-ink); }
.wd .wd-redeem__field > span em { font-style: normal; font-weight: 500; color: var(--wd-ink-3); }
.wd .wd-redeem__field small { display: block; margin-top: 6px; font-size: .8rem; color: var(--wd-ink-3); }
.wd .wd-redeem__field input {
  width: 100%; margin: 0; border: 1px solid var(--wd-line-2); border-radius: 12px; padding: 13px 14px;
  font-family: var(--wd-font-body); font-size: .95rem; line-height: 1.4; color: var(--wd-ink); background: #fff;
  box-shadow: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.wd .wd-redeem__field--code input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.wd .wd-redeem__field input:focus { outline: none; border-color: var(--wd-primary); box-shadow: 0 0 0 4px rgba(124, 58, 237, .14); }

.wd .wd-redeem__tiers { margin: 16px 0 0; font-size: .85rem; color: var(--wd-ink-3); }
.wd .wd-redeem__consent { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; font-size: .9rem; color: var(--wd-ink-2); cursor: pointer; }
.wd .wd-redeem__consent input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--wd-primary); flex: none; }
.wd .wd-redeem__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wd .wd-redeem .wd-btn { margin-top: 22px; width: 100%; justify-content: center; }
.wd .wd-redeem__fine { margin: 14px 0 0; font-size: .8rem; color: var(--wd-ink-3); text-align: center; }
.wd .wd-redeem__fine a { font-weight: 500; }
.wd .wd-redeem__error { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; font-size: .92rem; line-height: 1.5; }

.wd .wd-redeem--done { text-align: left; }
.wd .wd-redeem__ok { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #e7f7ec; color: #0f8a4a; margin: 0 0 16px; }
.wd .wd-redeem__ok svg { width: 26px; height: 26px; stroke: currentColor; }
.wd .wd-redeem__keys { margin: 18px 0 8px; padding: 16px 18px; border-radius: 12px; background: var(--wd-bg-2); border: 1px solid var(--wd-line); display: grid; gap: 6px; }
.wd .wd-redeem__keys dt { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--wd-ink-3); }
.wd .wd-redeem__keys dd { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wd .wd-redeem__keys code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--wd-line-2); color: var(--wd-ink); word-break: break-all; }

.wd .wd-redeem__faq { margin-top: 40px; }
.wd .wd-redeem__faq h2 { font-size: 1.35rem; margin: 0 0 8px; letter-spacing: -.02em; }
.wd .wd-redeem__faq h3 { font-size: 1.02rem; margin: 20px 0 6px; }
.wd .wd-redeem__faq p { margin: 0; color: var(--wd-ink-2); line-height: 1.6; }
.wd .wd-redeem__faq a { color: var(--wd-primary); font-weight: 600; }

@media (max-width: 640px) {
  .wd .wd-redeem { padding: 22px 18px; }
  .wd .wd-redeem__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Redemption v2 (2026-11): co-brand, steps, notes, password, more codes.
   ========================================================================== */

.wd .wd-cobrand { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 10px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--wd-line); box-shadow: var(--wd-shadow-sm); }
.wd .wd-cobrand__logo { display: block; height: 30px; width: auto; }
.wd .wd-cobrand__x { font-size: 1.25rem; color: var(--wd-ink-3); line-height: 1; }
.wd .wd-appsumo-logo.is-text { height: auto; font: 800 1.3rem/1 var(--wd-font-display); letter-spacing: -.02em; color: var(--wd-ink); }
.wd .wd-cobrand--sm { padding: 8px 12px; margin-bottom: 14px; box-shadow: none; }
.wd .wd-cobrand--sm .wd-cobrand__logo { height: 24px; }
.wd .wd-cobrand--sm .wd-appsumo-logo.is-text { font-size: 1.05rem; }

.wd .wd-redeem-steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wd .wd-redeem-steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: start; padding: 14px; border-radius: 14px; background: var(--wd-bg-2); border: 1px solid var(--wd-line); }
.wd .wd-redeem-steps span { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--wd-primary); color: #fff; font-weight: 700; font-size: .85rem; }
.wd .wd-redeem-steps strong { font-size: .92rem; color: var(--wd-ink); }
.wd .wd-redeem-steps em { font-style: normal; font-size: .8rem; color: var(--wd-ink-3); line-height: 1.4; }

.wd .wd-redeem__note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; font-size: .92rem; line-height: 1.5; }
.wd .wd-redeem__note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; stroke: currentColor; }
.wd .wd-redeem__note.is-ok { background: var(--wd-green-soft); border: 1px solid #bfe8cd; color: #0f6b3a; }
.wd .wd-redeem__note.is-warn { background: var(--wd-amber-soft); border: 1px solid #f8dc9a; color: #7a4d00; }
.wd .wd-redeem__note a, .wd .wd-redeem__error a { color: inherit; text-decoration: underline; }
.wd .wd-redeem__who { font-size: .92rem; }

.wd .wd-redeem__pass { position: relative; display: block; }
.wd .wd-redeem__pass input { padding-right: 76px; }
.wd .wd-redeem__show { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); margin: 0; padding: 6px 10px; border: 0; border-radius: 8px; background: var(--wd-bg-2); color: var(--wd-ink-2); font: 600 .8rem/1 var(--wd-font-body); cursor: pointer; }
.wd .wd-redeem__show:hover { background: var(--wd-bg-3); }

.wd .wd-redeem__more { margin: 16px 0 0; }
.wd .wd-redeem__more summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--wd-primary); }
.wd .wd-redeem__more .wd-redeem__grid { margin-top: 12px; }

/* ==========================================================================
   Account page (/account/, inc/account.php)
   ========================================================================== */

.wd .wd-account__h { font-size: 1.3rem; margin: 36px 0 12px; letter-spacing: -.02em; }
.wd .wd-account > .wd-account__h:first-child, .wd .wd-welcome + .wd-account__h { margin-top: 0; }
.wd .wd-account__aside { margin-top: 24px; font-size: .92rem; color: var(--wd-ink-2); }
.wd .wd-account__aside a, .wd .wd-account__steps a { color: var(--wd-primary); font-weight: 600; }

.wd .wd-welcome { position: relative; margin: 0 0 36px; padding: 28px; border-radius: var(--wd-r-lg); background: linear-gradient(135deg, #f1edff 0%, #fff0f6 100%); border: 1px solid #ddd5ff; }
.wd .wd-welcome h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1.5rem; letter-spacing: -.02em; }
.wd .wd-welcome h2 svg { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--wd-green); color: #fff; stroke: currentColor; flex: none; }
.wd .wd-welcome p { margin: 0 0 16px; color: var(--wd-ink-2); line-height: 1.6; }
.wd .wd-welcome .wd-btn svg, .wd .wd-licence .wd-btn svg { width: 16px; height: 16px; }
.wd-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9999; }

.wd .wd-licence { padding: 24px; margin: 0 0 16px; }
.wd .wd-licence.is-off { opacity: .7; }
.wd .wd-licence__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.wd .wd-licence h3 { margin: 0; font-size: 1.1rem; }
.wd .wd-licence__plan { margin: 4px 0 0; font-size: .88rem; color: var(--wd-ink-3); }
.wd .wd-licence__status { flex: none; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--wd-green-soft); color: #0f6b3a; }
.wd .wd-licence__status.is-disabled, .wd .wd-licence__status.is-expired { background: var(--wd-bg-3); color: var(--wd-ink-3); }
.wd .wd-licence__key { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0; padding: 12px 14px; border-radius: 12px; background: var(--wd-bg-2); border: 1px solid var(--wd-line); }
.wd .wd-licence__key code { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; color: var(--wd-ink); word-break: break-all; }
.wd .wd-licence__facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 16px; }
.wd .wd-licence__facts dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--wd-ink-3); }
.wd .wd-licence__facts dd { margin: 2px 0 0; font-weight: 600; color: var(--wd-ink); }

.wd .wd-account__steps { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 12px; color: var(--wd-ink-2); line-height: 1.6; }
.wd .wd-account__steps strong { color: var(--wd-ink); }

.wd .wd-review { display: grid; gap: 16px; margin: 36px 0 0; padding: 24px; border-radius: var(--wd-r-lg); background: var(--wd-bg-2); border: 1px solid var(--wd-line); }
.wd .wd-review h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1.2rem; }
.wd .wd-review h2 svg { width: 20px; height: 20px; color: var(--wd-amber); stroke: currentColor; }
.wd .wd-review p { margin: 0; color: var(--wd-ink-2); line-height: 1.6; }
.wd .wd-review__links { display: flex; flex-wrap: wrap; gap: 8px; }

.wd .wd-account__table { padding: 8px 16px; overflow-x: auto; }
.wd .wd-account__table table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.wd .wd-account__table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--wd-ink-3); padding: 10px 8px; border-bottom: 1px solid var(--wd-line); }
.wd .wd-account__table td { padding: 12px 8px; border-bottom: 1px solid var(--wd-line); color: var(--wd-ink-2); white-space: nowrap; }
.wd .wd-account__table tr:last-child td { border-bottom: 0; }

.wd .wd-account__profile { padding: 18px 22px; }
.wd .wd-account__profile summary { cursor: pointer; font-weight: 600; color: var(--wd-primary); }
.wd .wd-account__profile #edd_profile_address_fieldset { display: none; }
.wd .wd-account__profile fieldset { border: 0; margin: 16px 0 0; padding: 0; }
.wd .wd-account__profile legend { font-weight: 700; margin: 0 0 8px; color: var(--wd-ink); }
.wd .wd-account__profile p { margin: 0 0 10px; }
.wd .wd-account__profile label { display: block; font-weight: 600; font-size: .88rem; margin: 0 0 4px; color: var(--wd-ink); }
.wd .wd-account__profile input[type="text"], .wd .wd-account__profile input[type="email"], .wd .wd-account__profile input[type="password"], .wd .wd-account__profile select,
.wd .wd-account__login input[type="text"], .wd .wd-account__login input[type="password"] {
  width: 100%; margin: 0; border: 1px solid var(--wd-line-2); border-radius: 12px; padding: 12px 14px; font: 400 .95rem/1.4 var(--wd-font-body); color: var(--wd-ink); background: #fff; box-shadow: none;
}
.wd .wd-account__profile input[type="submit"], .wd .wd-account__login input[type="submit"] {
  margin-top: 8px; padding: 13px 22px; border: 0; border-radius: 12px; background: var(--wd-primary); color: #fff; font: 600 .95rem/1 var(--wd-font-body); cursor: pointer;
}
.wd .wd-account__login input[type="submit"] { width: 100%; }
.wd .wd-account__login p { margin: 0 0 14px; }
.wd .wd-account__login label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 6px; color: var(--wd-ink); }
.wd .wd-account__login .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--wd-ink-2); }

@media (max-width: 640px) {
  .wd .wd-redeem-steps { grid-template-columns: 1fr; }
  .wd .wd-welcome, .wd .wd-licence, .wd .wd-review { padding: 20px 18px; }
  .wd .wd-cobrand__logo { height: 24px; }
}
