/* LoyaltyHub — front-core.css
   Noyau — animations, selecteurs generiques, UI injectee par front.js (toasts, reveal de bon).
   Charge des que le module affiche quoi que ce soit.
   Genere depuis front.css — ne pas editer a la main. */
.lh-voucher-reveal {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.32);
    border-radius: 10px;
    min-width: 0;
    max-width: 100%;
}
.lh-voucher-reveal__head {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #047857;
}
.lh-voucher-reveal__head svg { width: 13px; height: 13px; flex-shrink: 0; }
.lh-voucher-reveal__row {
    display: flex;
    align-items: stretch;
    gap: 6px;
    min-width: 0;
}
.lh-voucher-reveal__code {
    flex: 1;
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    background: #fff;
    border: 1px dashed rgba(16, 185, 129, 0.45);
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #0f172a;
    user-select: all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}
.lh-voucher-reveal__copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    background: var(--lh-fg, #0f172a);
    color: #fff !important;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 150ms ease, transform 100ms ease;
    flex-shrink: 0;
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1;
}
.lh-voucher-reveal__copy:hover {
    background: #000;
    color: #fff !important;
}
.lh-voucher-reveal__copy:active { transform: scale(0.96); }
.lh-voucher-reveal__copy.is-copied {
    background: #10b981 !important;
    color: #fff !important;
}
.lh-voucher-reveal__copy svg { width: 13px; height: 13px; flex-shrink: 0; }
.lh-list__item.is-redeemed .lh-voucher-reveal {
    flex: 1 1 100%;
    margin-top: 4px;
}
.lh-card-reward__footer .lh-voucher-reveal {
    min-width: 180px;
    flex: 1;
}
@keyframes lh-wave {
    0%, 60%, 100% { transform: rotate(0); }
    20% { transform: rotate(14deg); }
    40% { transform: rotate(-8deg); }
}
[data-lh-copy-page].is-copied {
    background: #10b981 !important;
}
@keyframes lh-pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25); }
    50%      { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.10); }
}
@keyframes lh-modal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes lh-modal-pop {
    from { transform: scale(0.92) translateY(8px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes lh-medal-shine {
    0%   { box-shadow: 0 6px 14px rgba(0,0,0,0.22), inset 0 1px 1px rgba(255,255,255,0.55), inset 0 -2px 4px rgba(0,0,0,0.18), 0 0 0 0 color-mix(in srgb, var(--lh-medal-color, #6366f1) 50%, transparent); }
    50%  { box-shadow: 0 6px 14px rgba(0,0,0,0.22), inset 0 1px 1px rgba(255,255,255,0.55), inset 0 -2px 4px rgba(0,0,0,0.18), 0 0 0 8px color-mix(in srgb, var(--lh-medal-color, #6366f1) 0%, transparent); }
    100% { box-shadow: 0 6px 14px rgba(0,0,0,0.22), inset 0 1px 1px rgba(255,255,255,0.55), inset 0 -2px 4px rgba(0,0,0,0.18), 0 0 0 0 transparent; }
}
.lh-toast--error {
    background: #1f1115;
    border: 1px solid rgba(248, 113, 113, 0.45);
}
.lh-toast--error .lh-toast__icon { background: rgba(248, 113, 113, 0.22); color: #fecaca; }
.lh-toast--success {
    background: #0b1f1a;
    border: 1px solid rgba(52, 211, 153, 0.45);
}
.lh-toast--success .lh-toast__icon { background: rgba(52, 211, 153, 0.22); color: #a7f3d0; }
.lh-toast--info {
    background: #0e1a2e;
    border: 1px solid rgba(96, 165, 250, 0.45);
}
.lh-toast--info .lh-toast__icon { background: rgba(96, 165, 250, 0.22); color: #bfdbfe; }
@keyframes lh-boost-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70%  { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
