/* Active Codes — scoped to Homepage, independent of the Update Schedule deck */
.sla-home-codes{min-width:0;margin-top:42px;container-type:inline-size}
.sla-home-codes-header{margin:0 0 23px;text-align:center}
.sla-home-codes-title{font-size:clamp(28px,2.45vw,32px);font-weight:900;letter-spacing:.02em;color:#facc15;margin:0 0 8px;text-align:center}
.sla-home-codes-subtitle{font-size:13px;line-height:1.5;color:#a9b9ce;margin:0;text-align:center}
.sla-home-active-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:16px;min-width:0}
.sla-home-active-grid:not(.has-codes){grid-template-columns:minmax(0,1fr)}
.sla-code-card{display:flex;flex-direction:column;min-width:0;height:100%;box-sizing:border-box;gap:18px;padding:23px 24px 19px;border:1px solid #32445f;border-radius:17px;background:linear-gradient(150deg,#18263d,#0e1828);box-shadow:0 9px 28px rgba(0,0,0,.13)}
.sla-code-head{position:relative;display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:12px;text-align:center;min-width:0;padding:0}
.sla-code-heading{flex:1 1 100%;min-width:0;text-align:center}
.sla-code-eyebrow,.sla-code-field-label{display:block;color:#9cacc2;font-size:10px;line-height:1.35;letter-spacing:.14em;font-weight:900}
.sla-code-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px;margin-top:8px;min-width:0}
.sla-code-copy{appearance:none;min-width:0;max-width:100%;border:0;background:transparent;color:#facc15;text-align:center;padding:0;cursor:pointer;font-size:clamp(19px,2.5vw,29px);font-weight:900;line-height:1.22;overflow-wrap:anywhere;word-break:break-word;letter-spacing:.013em}
.sla-code-copy:hover{color:#ffe47a;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
.sla-code-copy:focus-visible{outline:3px solid #facc15;outline-offset:4px;border-radius:4px}
.sla-code-new{flex:0 0 auto;font-size:10px;font-weight:900;letter-spacing:.07em;color:#ffe6e6;background:#b91c1c;border:1px solid #ef4444;padding:4px 7px;border-radius:6px}
.sla-code-new[hidden]{display:none}
.sla-code-rewards{border:1px solid #33465e;border-radius:11px;background:rgba(5,13,25,.26);padding:13px 15px;min-width:0}
.sla-code-reward-list{margin:10px 0 0;padding:0 0 0 17px;list-style:disc;display:grid;gap:8px}
.sla-code-reward{display:list-item;color:#e5ebf4;font-size:13px;line-height:1.4;overflow-wrap:anywhere;padding-left:1px}
.sla-code-reward strong{display:inline;white-space:normal;margin-left:5px;color:#faf1cb;font-variant-numeric:tabular-nums}
.sla-code-missing{color:#a5b4c8;font-size:12px;margin:9px 0 0}
.sla-code-clock-box{text-align:center;min-width:0;margin-top:auto}
.sla-code-clock{color:#facc15;font-size:clamp(25px,2.6vw,39px);font-weight:900;line-height:1.15;letter-spacing:-.025em;white-space:nowrap;font-variant-numeric:tabular-nums;margin:10px 0 5px}
.sla-code-local{font-size:12px;color:#aebfd5;line-height:1.45;margin:0}
.sla-code-footer{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;text-align:center;gap:9px;flex-wrap:wrap;font-size:12px;min-height:18px;margin-top:0;padding-top:2px}
.sla-code-source{color:#f4d16c;text-decoration:none;font-weight:750}
.sla-code-source:hover{text-decoration:underline;color:#ffe184}
.sla-code-source:focus-visible{outline:2px solid #facc15;outline-offset:4px}
.sla-code-manual{color:#8ca0bb}
.sla-code-copy-message{color:#90f1bb;font-weight:750}
.sla-code-empty{padding:25px;margin:0;border:1px dashed #40516a;background:#131e2f;border-radius:14px;color:#abbacc;text-align:center;font-size:14px}
.sla-home-active-error{margin:0 0 12px;font-size:12px;color:#ffb1b7}
.sla-home-active-error[hidden]{display:none}
@media(max-width:1020px){.sla-home-active-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:660px){.sla-home-active-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:450px){.sla-home-codes{margin-top:28px}.sla-code-card{padding:17px;gap:14px}.sla-code-head{padding:0}.sla-code-copy{font-size:clamp(18px,5.5vw,25px)}.sla-code-clock{font-size:clamp(23px,7vw,32px)}.sla-code-rewards{padding:12px}.sla-code-reward{font-size:12px}}
@supports (container-type:inline-size){
 @container(max-width:1020px){.sla-home-active-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
 @container(max-width:660px){.sla-home-active-grid{grid-template-columns:minmax(0,1fr)}}
 @container(min-width:1021px){.sla-code-card{padding:20px 19px 18px;gap:15px}.sla-code-head{padding:0}.sla-code-copy{font-size:clamp(18px,2cqw,26px)}.sla-code-clock{font-size:clamp(23px,2.5cqw,34px)}}
}

/* Stage 4.6: per-account coupon states, without changing interior cards. */
.sla-code-card.sla-code-redeemed{border:2px solid #22c55e}
.sla-code-card.sla-code-failed{border:2px solid #ef4444}
.sla-code-card.sla-code-pending{border:2px solid #3b82f6}
.sla-code-card.sla-code-unknown{border:2px solid #94a3b8}
.sla-code-redemption-detail{color:#b8cce4;font-size:12px;text-align:center;overflow-wrap:anywhere}
.sla-redeem-banner{display:flex;gap:9px;align-items:center;justify-content:center;flex-wrap:wrap;margin:14px auto 4px;padding:10px 14px;border:1px solid #344961;border-radius:12px;background:#162337;font-size:12px;color:#bac9da;max-width:800px}
.sla-redeem-banner strong{color:#e2e8f0}.sla-redeem-action{background:#263954;border:1px solid #456084;color:#f8d758;border-radius:6px;padding:5px 10px;text-decoration:none;cursor:pointer}
.sla-redeem-help-button{vertical-align:middle;border:1px solid #687d94;background:#263954;color:#f8d758;border-radius:50%;width:24px;height:24px;cursor:pointer;font-size:14px}

/* Stage 4.6.4: accessible, viewport-centered redemption status modal */
.sla-redeem-modal-open{overflow:hidden!important}
.sla-redeem-modal-backdrop{position:fixed;inset:0;z-index:2147483000;display:flex;justify-content:center;align-items:center;padding:18px;background:rgba(1,7,16,.72);box-sizing:border-box}
.sla-redeem-modal-backdrop[hidden]{display:none!important}
.sla-redeem-modal{width:min(100%,480px);max-height:calc(100dvh - 36px);overflow-y:auto;box-sizing:border-box;border:1px solid #526681;border-radius:17px;background:#111e30;padding:23px;box-shadow:0 24px 75px rgba(0,0,0,.5);color:#e6edf7;text-align:left}
.sla-redeem-modal-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}
.sla-redeem-modal-header h2{font-size:clamp(18px,4.5vw,22px);line-height:1.25;margin:0;font-weight:850;color:#fff}
.sla-redeem-modal-close{width:37px;height:37px;flex:0 0 37px;display:grid;place-items:center;border:1px solid #4c6080;border-radius:9px;background:#233550;color:#e9f0fa;cursor:pointer;padding:0}
.sla-redeem-modal-close:hover{background:#365274}.sla-redeem-modal-close:focus-visible,.sla-redeem-help-button:focus-visible{outline:3px solid #facc15;outline-offset:3px}
.sla-redeem-modal-list{display:grid;gap:11px}
.sla-redeem-legend-row{border:2px solid #94a3b8;border-radius:10px;padding:13px 15px;background:rgba(6,13,26,.38);font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.sla-redeem-legend-redeemed{border-color:#22c55e}
.sla-redeem-legend-failed{border-color:#ef4444}
.sla-redeem-legend-pending{border-color:#3b82f6}
.sla-redeem-legend-unknown{border-color:#94a3b8}
.sla-redeem-modal-footnote{font-size:12px;line-height:1.6;color:#b2c2d6;margin:17px 0 0}
@media(max-width:380px){.sla-redeem-modal{padding:17px}.sla-redeem-legend-row{padding:10px 12px}}
