/* LuckyAI activation — original v2.0.4 design, Production API bridge. */
.activation-main { background: #f4f6f8; min-height: 65vh; padding: 38px 0 72px; }
.activation-wrap { max-width: 910px; }
.demo-alert { color: #5b6b22; background: #f2f7e5; border: 1px solid #d9e7bf; border-radius: 12px; padding: 12px 16px; font-size: .84rem; line-height: 1.65; }
.demo-marker { background: #93bf36; color: #19340c; font-weight: 900; font-size: .65rem; border-radius: 4px; padding: 4px 7px; margin-right: 6px; letter-spacing: .08em; }
.activation-intro { padding: 40px 0 23px; max-width: 720px; }
.activation-intro h1 { color: var(--lucky-navy-2); font-size: clamp(1.8rem,4.2vw,2.6rem); font-weight: 900; line-height: 1.25; letter-spacing: -.035em; margin-bottom: 13px; }
.activation-intro p { color: #667b91; font-size: 1.02rem; line-height: 1.7; margin: 0; }
.activation-steps { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 650px; list-style: none; margin: 0 auto 26px; padding: 0; gap: 8px; }
.activation-steps li { text-align: center; color: #6c7b90; display: flex; gap: 9px; align-items: center; justify-content: center; font-weight: 650; font-size: .86rem; }
.activation-steps li span { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; background: #fff; border: 1px solid #cfdae5; color: #45617a; border-radius: 50%; font-weight: 900; }
.activation-steps li.is-active span { color: #17370d; background: #93bf36; border-color: #93bf36; }
.activation-steps li.is-done span { background: #eaf4da; border-color: #d3e3b2; color: #57800b; }
.activation-steps li.is-active small { color: var(--lucky-navy-2); }
.activation-steps li small { font-size: inherit; }
.activate-panel { background: #fff; border: 1px solid #e0e7ed; border-radius: 25px; padding: clamp(22px,4.8vw,45px); max-width: 720px; margin: 0 auto; box-shadow: 0 16px 48px rgba(17,47,107,.045); }
.activate-panel h2 { color: var(--lucky-navy-2); font-size: clamp(1.35rem,2.6vw,1.8rem); font-weight: 900; line-height: 1.35; margin-bottom: 14px; }
.muted-copy { color: #687d91; line-height: 1.7; }
.field-label { color: var(--lucky-navy-2); font-weight: 800; font-size: .91rem; }
.activate-panel .form-control, .activate-panel .form-select { background: #fff; border: 1px solid #d5e0e8; border-radius: 12px; padding: .78rem .93rem; color: var(--lucky-navy-2); }
.activate-panel .form-control:focus, .activate-panel .form-select:focus { border-color: #91bb3c; box-shadow: 0 0 0 .22rem rgba(147,191,54,.17); }
.activate-panel .btn-lucky { padding: .91rem 1.1rem; border-radius: 13px; }
.activate-panel .form-text { color: #728398; font-size: .81rem; line-height: 1.6; }
.demo-picker { padding: 18px; background: #f7f9fc; border: 1px dashed #cdd6df; border-radius: 14px; }
.product-status { display: inline-flex; align-items: center; gap: 9px; color: #5b8617; font-size: .83rem; font-weight: 850; margin-bottom: 24px; }
.product-status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #93bf36; }
.product-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.product-title { font-size: clamp(1.38rem,3vw,1.75rem); font-weight: 900; color: #102b5c; margin: 0 0 5px; }
.product-sku { color: #708098; font-size: .85rem; margin: 0; }
.key-main { border: 2px solid #d6e8b6; background: linear-gradient(135deg,#fbfff4,#f1f8e8); border-radius: 19px; padding: 25px; text-align: center; }
.key-main .key-img { display: block; width: 205px; height: 86px; object-fit: contain; margin: 0 auto 6px; }
.key-main h3 { font-size: clamp(2rem,5vw,3rem); color: #0d2a5c; margin: 4px 0 9px; font-weight: 900; }
.key-main p { color: #5b7680; margin: 0; font-size: .93rem; }
.credit-main { background: #eff7e2; border: 1px solid #dfecc8; border-radius: 16px; padding: 19px 24px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 14px; }
.credit-main small { color: #547a1c; font-size: .85rem; font-weight: 800; }
.credit-main strong { color: #436b0c; font-size: 1.7rem; font-weight: 900; }
.product-section { margin-top: 22px; }
.product-row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 12px 0; border-bottom: 1px solid #e7edf1; }
.product-row dt { color: #657a91; font-size: .91rem; font-weight: 500; margin: 0; }
.product-row dd { color: #112d59; font-size: .93rem; font-weight: 800; text-align: right; margin: 0; }
.info-strip { background: #f2f8e8; color: #50663a; border: 1px solid #e2ebd4; border-radius: 12px; padding: 12px 15px; line-height: 1.65; font-size: .88rem; }
.info-strip.mt-soft { margin-top: 18px; }
.schedule-box { margin: 23px 0 0; min-width: 0; padding: 0; border: 0; }
.schedule-heading { font-weight: 850; font-size: 1.08rem; color: #112f6b; margin: 0 0 13px; float: none; width: auto; }
.date-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.date-option { display: flex; align-items: center; min-width: 0; gap: 11px; min-height: 69px; padding: 14px 16px; background: #fff; border: 1px solid #dde4ec; border-radius: 12px; cursor: pointer; margin: 0; }
.date-option .form-check-input { flex-shrink: 0; margin: 0; accent-color: #78a623; }
.date-option .form-check-input:checked { background-color: #86b52b; border-color: #86b52b; }
.date-option.is-selected { border-color: #93bf36; background: #f5faea; box-shadow: 0 0 0 1px #93bf36 inset; }
.date-option:focus-within { outline: 2px solid #7b9f27; outline-offset: 2px; }
.date-option strong { color: #143262; font-size: .98rem; line-height: 1.35; }
.schedule-prompt { margin: 12px 0 0; color: #6f8095; font-size: .88rem; line-height: 1.5; }
.schedule-summary { background: #f7f9fb; padding: 14px 18px; margin: 14px 0 0; border-radius: 13px; }
.wallet-expiry-value { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; min-width: 0; }
.wallet-expiry-rule { font-weight: 700; color: #112d59; overflow-wrap: anywhere; }
.wallet-expiry-date { color: #527a17; font-size: .87rem; font-weight: 650; }
.activate-panel .btn-lucky:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.binding-tabs { display: flex; gap: 10px; background: #f3f6f9; padding: 5px; border-radius: 12px; margin-bottom: 17px; }
.binding-tab { flex: 1; border: 1px solid transparent; background: transparent; color: #587087; font-weight: 800; border-radius: 10px; padding: 11px 8px; }
.binding-tab[aria-pressed="true"] { border-color: #d7e8bd; background: #fff; color: #3e6710; box-shadow: 0 3px 12px rgba(17,47,107,.06); }
.binding-tab:focus-visible { outline: 3px solid #93bf36; }
.review-list { margin: 18px 0 26px; background: #f8fafc; padding: 8px 22px; border-radius: 16px; }
.review-list>div { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid #e7edf2; }
.review-list>div:last-child { border-bottom: 0; }
.review-list dt { font-size: .9rem; font-weight: 500; color: #63758a; }
.review-list dd { font-size: .93rem; font-weight: 800; color: #12305f; margin: 0; text-align: right; }
.review-list .review-account-value { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 0; }
.review-list .review-account-email { color: #60748d; font-size: .85rem; font-weight: 500; overflow-wrap: anywhere; word-break: break-word; text-align: right; }
.review-ack { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; color: #334e65; }
.review-ack input { accent-color: #7da923; width: 19px; height: 19px; }
.finish-icon { width: 72px; height: 72px; margin: 0 auto 20px; display: grid; place-items: center; background: #edf6df; color: #618c13; border-radius: 50%; font-size: 2.1rem; font-weight: 900; }
.back-button { color: #607995; text-decoration: none; font-weight: 700; }
.activation-smallprint { color: #77879b; font-size: .77rem; line-height: 1.6; max-width: 650px; margin: 22px auto 0; text-align: center; }
@media (max-width:575.98px) {
 .activation-main { padding: 16px 0 46px; }
 .activation-wrap { padding-left: 14px; padding-right: 14px; }
 .activation-intro { padding: 28px 2px 20px; }
 .activation-intro p { font-size: .94rem; }
 .activation-steps { margin-bottom: 18px; }
 .activation-steps li { display: flex; flex-direction: column; gap: 6px; font-size: .7rem; line-height: 1.25; }
 .activate-panel { border-radius: 19px; padding: 21px 18px; }
 .product-head { gap: 10px; }
 .key-main { padding: 18px 10px; }
 .credit-main { padding: 16px; }
 .date-options { grid-template-columns: 1fr; gap: 10px; }
 .date-option { min-height: 60px; }
 .product-row { gap: 10px; }
 .product-row dt, .product-row dd { font-size: .85rem; }
 .review-list { padding: 6px 14px; }
 .review-list dt, .review-list dd { font-size: .85rem; }
}

/* Customer Portal: retain the existing panel and navigation design. */
.customer-nav a[aria-current="page"] { font-weight: 800; text-decoration-thickness: 3px; }
.portal-service-note { color: #60748d; font-size: .9rem; line-height: 1.6; }
.activation-wrap .activate-panel { margin-bottom: 18px; }
.activation-wrap .review-list dd, #accountIdentity, #keyAccountEmail, #redemptionJobs { overflow-wrap: anywhere; min-width: 0; }
@media (max-width:575.98px) {
 #redemptionFields .product-row { flex-direction: column; gap: 5px; }
 #redemptionFields dd { text-align: left; }
}
#accountMessage:empty { display: none; }

/* v2.1.8 authenticated customer dashboard, LuckyAI light theme. */
#luckyAccount [hidden] { display: none !important; }
#luckyAccount .account-intro { padding: 16px 0 24px; }
#luckyAccount .account-summary, #luckyAccount .account-detail { background: #fff; border: 1px solid #e0e7ed; border-radius: 22px; padding: 26px 30px; margin-bottom: 24px; }
#luckyAccount .account-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
#luckyAccount .account-summary p { margin-bottom: 7px; }
#luckyAccount .account-verified { color: #426b12; font-size: 1.08rem; font-weight: 800; }
#luckyAccount .account-verified span { display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #edf6df; margin-right: 8px; }
#luckyAccount #accountIdentity { color: #16345c; overflow-wrap: anywhere; }
#luckyAccount .account-verification-note { color: #65798d; font-size: .88rem; }
#luckyAccount .account-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
#luckyAccount .account-card { position: relative; display: block; padding: 28px 30px 36px; color: #17365e; background: #fff; border: 1px solid #dfe6eb; border-radius: 22px; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
#luckyAccount .account-card:hover { border-color: #91b94b; box-shadow: 0 8px 26px rgba(17,47,107,.07); }
#luckyAccount .account-card:focus-visible { outline: 3px solid #93bf36; outline-offset: 4px; }
#luckyAccount .account-card-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #f1f7e7; color: #527c1a; font-size: 1.6rem; margin-bottom: 18px; }
#luckyAccount .account-card h2, #luckyAccount .account-detail h2 { font-size: 1.3rem; font-weight: 800; color: #112f5a; margin: 0 0 10px; }
#luckyAccount .account-card p { color: #60748b; margin-bottom: 18px; line-height: 1.65; }
#luckyAccount .account-card-state { display: block; font-size: .82rem; color: #60748b; padding-right: 18px; line-height: 1.7; }
#luckyAccount .account-card-arrow { position: absolute; right: 24px; bottom: 25px; color: #5c7c28; font-size: 1.3rem; }
#luckyAccount .account-detail { margin-top: 24px; color: #536b83; line-height: 1.8; }
#luckyAccount #accountRetry { margin: 0 0 18px; padding-left: 0; }
@media (max-width:767.98px) {
 #luckyAccount .account-card-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
 #luckyAccount .account-summary { align-items: flex-start; flex-direction: column; }
 #luckyAccount .account-summary, #luckyAccount .account-detail, #luckyAccount .account-card { padding: 23px; border-radius: 18px; }
}

#luckyAccount .wallet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
#luckyAccount .wallet-actions button { min-height: 44px; }
#luckyAccount .wallet-timestamp { margin: 8px 0 0; font-size: .8rem; overflow-wrap: anywhere; }
#luckyAccount #walletStatus { overflow-wrap: anywhere; padding-right: 0; }
#luckyAccount #walletStatus[data-state="available"] { color: #17365e; font-size: 1.5rem; font-weight: 800; }

/* Read-only redemption progress, with reduced-motion support. */
.redemption-spinner, .finish-icon.is-loading::after {
 content: ''; display: inline-block; width: 1.5rem; height: 1.5rem;
 border: 3px solid #dce9c7; border-top-color: #618c13; border-radius: 50%;
 animation: redemption-spin .9s linear infinite;
}
.redemption-spinner[hidden] { display: none; }
.finish-icon.is-loading { font-size: 0; display: flex; align-items: center; justify-content: center; }
@keyframes redemption-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
 .redemption-spinner, .finish-icon.is-loading::after { animation: none; }
}
#portalResume:focus-visible { outline: 3px solid #254d10; outline-offset: 3px; }

.subscription-row dt { flex: 0 0 30%; }
.subscription-row dd { min-width: 0; }
.subscription-note { display: block; margin-top: 5px; color: #687d91; font-size: .78rem; font-weight: 400; line-height: 1.6; text-align: right; text-wrap: pretty; }
#luckyActivation [hidden] { display: none !important; }
