/* redeem-1 (LD-20261109-1507-REDEEM): My coupons ticket + shop Redeem screen. Light + dark. */
html.rd-open { overflow: hidden; }
.rd-sheet { position: fixed; inset: 0; z-index: 9000; background: rgba(8, 12, 24, .55); display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(4px); }
.rd-sheet[hidden] { display: none; }
.rd-in { width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; background: var(--surface, #fff); color: var(--text, #0f172a); border-radius: 22px 22px 0 0; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.25); }
.rd-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.rd-head h3 { margin: 0; font-size: 19px; }
.rd-x { border: 0; background: rgba(100,116,139,.14); color: inherit; border-radius: 999px; padding: 7px 13px; font: 600 13px system-ui; cursor: pointer; }
.rd-sub, .rd-empty { color: #64748b; font-size: 14px; margin: 4px 0 12px; }
.rd-list { display: grid; gap: 9px; }
.rd-cp { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; border: 1px solid rgba(100,116,139,.2); border-radius: 16px; padding: 11px 12px; background: linear-gradient(135deg, rgba(250,204,21,.12), rgba(59,130,246,.08)); color: inherit; cursor: pointer; position: relative; }
.rd-cp::before, .rd-cp::after { content: ''; position: absolute; left: 50px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface, #fff); }
.rd-cp::before { top: -7px; } .rd-cp::after { bottom: -7px; }
.rd-cp.is-redeemed, .rd-cp.is-expired { opacity: .6; background: rgba(100,116,139,.08); }
.rd-emo { font-size: 28px; width: 40px; text-align: center; flex: none; } .rd-emo.big { font-size: 40px; width: 54px; }
.rd-info { flex: 1; min-width: 0; display: grid; gap: 1px; } .rd-info b { font-size: 15px; } .rd-info small, .rd-tk-top small { color: #64748b; font-size: 12px; display: block; }
.rd-badge { flex: none; font: 700 11px system-ui; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.rd-valid { background: #dcfce7; color: #166534; } .rd-redeemed { background: #dbeafe; color: #1e40af; } .rd-expired { background: #fee2e2; color: #991b1b; }
.rd-ticket { border-radius: 20px; padding: 16px; background: linear-gradient(160deg, #fef9c3, #fff 55%); color: #0f172a; border: 1px solid rgba(0,0,0,.08); text-align: center; }
.rd-ticket.is-redeemed { background: linear-gradient(160deg, #dbeafe, #fff 55%); } .rd-ticket.is-expired { background: #f1f5f9; }
.rd-tk-top { display: flex; align-items: center; gap: 10px; text-align: left; } .rd-tk-top > div { flex: 1; } .rd-tk-top b { font-size: 17px; }
.rd-qr { margin: 14px auto 6px; width: min(72vw, 260px); background: #fff; border-radius: 14px; padding: 6px; }
.rd-qr svg { width: 100%; height: auto; display: block; }
.rd-stamp { font-size: 90px; line-height: 220px; }
.rd-code small { display: block; color: #64748b; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.rd-code b { font: 800 30px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.rd-state { margin: 8px 0 0; font-size: 13px; color: #475569; }
.rd-btn { border: 0; border-radius: 14px; padding: 11px 16px; background: #0f172a; color: #fff; font: 700 15px system-ui; cursor: pointer; }
.rd-btn.big { width: 100%; padding: 15px; font-size: 17px; background: linear-gradient(135deg, #f59e0b, #ef4444); margin: 6px 0 10px; }
.rd-btn.ghost { background: rgba(100,116,139,.18); color: inherit; }
.rd-form { display: flex; gap: 8px; } .rd-form input { flex: 1; min-width: 0; border: 2px solid rgba(100,116,139,.3); border-radius: 14px; padding: 12px; font: 700 20px ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; background: transparent; color: inherit; }
.rd-f { display: grid; gap: 4px; margin-bottom: 8px; font-size: 13px; } .rd-f select { padding: 9px; border-radius: 10px; }
.rd-cam video { width: 100%; border-radius: 14px; background: #000; max-height: 46vh; object-fit: cover; } .rd-cam { display: grid; gap: 8px; margin-bottom: 8px; }
.rd-res { margin-top: 12px; border-radius: 16px; } .rd-res:empty { display: none; }
.rd-res.is-valid, .rd-res.is-redeemed, .rd-res.is-expired, .rd-res.is-bad { padding: 12px; border: 1px solid rgba(100,116,139,.2); }
.rd-res.ok { background: rgba(34,197,94,.1); text-align: center; } .rd-res.ok .rd-tk-top { margin: 8px 0 12px; }
.rd-done { font-size: 64px; animation: rdPop .45s cubic-bezier(.2,1.6,.4,1); } .rd-okt { margin: 0; color: #15803d; }
@keyframes rdPop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.rd-msg { margin: 0; font-weight: 600; } .rd-msg.bad { color: #b91c1c; }
.rd-hist h4 { margin: 16px 0 6px; font-size: 14px; } .rd-hist h4 small { color: #64748b; font-weight: 500; }
.rd-row { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; border-top: 1px solid rgba(100,116,139,.15); font-size: 13px; } .rd-row small { color: #64748b; margin-left: auto; }
.gd-qr { margin-left: 6px; }
[data-theme="dark"] .rd-in { background: #0f172a; color: #e2e8f0; }
[data-theme="dark"] .rd-cp::before, [data-theme="dark"] .rd-cp::after { background: #0f172a; }
[data-theme="dark"] .rd-btn:not(.big):not(.ghost) { background: #e2e8f0; color: #0f172a; }
@media (prefers-reduced-motion: reduce) { .rd-done { animation: none; } }
