/* Điểm danh nhận quà — tách khỏi main.css */
.checkin-card {
    background: linear-gradient(180deg, #3a2a3d 0%, #2a1f2e 100%);
    border-radius: 16px;
    padding: 16px 16px 12px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.checkin-head {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.checkin-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}
.checkin-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff4fa3;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    margin-left: 6px;
    cursor: help;
    position: relative;
    vertical-align: middle;
}
.checkin-tooltip {
    display: none;
    position: absolute;
    left: 0;
    top: 26px;
    width: 280px;
    max-width: 80vw;
    background: #1b1420;
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    z-index: 20;
    box-shadow: 0 8px 20px rgba(0,0,0,.35);
    white-space: normal;
}
.checkin-help:hover .checkin-tooltip,
.checkin-help:focus .checkin-tooltip {
    display: block;
}
.checkin-days {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 2px 10px;
    -webkit-overflow-scrolling: touch;
}
.checkin-day {
    flex: 0 0 76px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: transform .2s ease;
}
a.checkin-day:hover {
    text-decoration: none;
    color: #fff;
}
.checkin-day-claim {
    cursor: pointer;
}
.checkin-day:hover .checkin-icon {
    transform: translateY(-3px) scale(1.06);
}
.checkin-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.12), rgba(255,255,255,.04));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.checkin-icon img {
    max-width: 48px;
    max-height: 48px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,.35));
    animation: checkin-float 2.6s ease-in-out infinite;
}
.checkin-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 48%, transparent 66%);
    transform: translateX(-120%);
    pointer-events: none;
    z-index: 2;
}
.checkin-day.is-today .checkin-icon {
    background: linear-gradient(180deg, #ff5eb0, #8b3dff);
    box-shadow: 0 0 0 2px #ffd56a, 0 0 16px rgba(255,79,163,.7);
    animation: checkin-pulse 1.8s ease-in-out infinite;
}
.checkin-day.is-today .checkin-shine {
    animation: checkin-shine 2.4s ease-in-out infinite;
}
.checkin-day.is-paid:not(.is-locked) .checkin-icon,
.checkin-day.is-locked .checkin-icon {
    background: radial-gradient(circle at 50% 30%, #4a2a22, #2a1b20);
}
.checkin-day.is-locked .checkin-icon img {
    animation: none;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)) saturate(.85);
}
.checkin-lock {
    position: absolute;
    left: 5px;
    bottom: 5px;
    font-size: 11px;
    z-index: 3;
    line-height: 1;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.5));
}
.checkin-tick {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 0 2px rgba(255, 248, 230, .95);
    pointer-events: none;
}
.checkin-day.is-claimed.is-today .checkin-icon {
    animation: none;
}
.checkin-day.is-claimed .checkin-icon img {
    animation: none;
}
.checkin-qty {
    font-size: 11px;
    margin-top: 4px;
    opacity: .9;
}
.checkin-label {
    font-size: 12px;
    margin-top: 4px;
}
.checkin-label.is-free {
    color: #9ae6b4;
}
.checkin-label.is-price,
.checkin-day.is-today .checkin-label {
    color: #ff8cc8;
}
.checkin-bar {
    margin-top: 10px;
    background: #1d1622;
    border-radius: 999px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}
.checkin-bar b {
    color: #ff4fa3;
}
.checkin-bar img {
    width: 22px;
    height: 22px;
}
.checkin-card .checkin-bar button.checkin-claim-btn,
.checkin-card .checkin-bar a.checkin-claim-btn {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 2px solid #ffd56a !important;
    background: linear-gradient(180deg, #ff7ac8 0%, #ff3d8a 42%, #ff6a2a 100%) !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    letter-spacing: .02em;
    padding: 8px 18px 9px !important;
    min-height: 40px;
    border-radius: 999px !important;
    cursor: pointer;
    text-decoration: none !important;
    line-height: 1 !important;
    overflow: hidden;
    box-shadow: 0 4px 0 #9a1f4a, 0 8px 18px rgba(255, 79, 163, .45) !important;
    text-shadow: 0 1px 0 rgba(0,0,0,.25);
    transition: transform .15s ease, filter .15s ease;
    animation: checkin-btn-glow 1.8s ease-in-out infinite;
}
.checkin-card .checkin-bar .checkin-claim-btn img {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,.35));
}
.checkin-claim-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.45) 48%, transparent 70%);
    transform: translateX(-140%);
    pointer-events: none;
    animation: checkin-shine 2.2s ease-in-out infinite;
}
.checkin-card .checkin-bar .checkin-claim-btn:hover {
    color: #fff !important;
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.checkin-card .checkin-bar .checkin-claim-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #9a1f4a, 0 4px 10px rgba(255, 79, 163, .35) !important;
}
.checkin-card .checkin-bar .checkin-claim-btn:focus-visible {
    outline: 2px solid #ffe08a;
    outline-offset: 3px;
}
.checkin-claimed-note {
    opacity: .7;
    font-size: 12px;
}
.checkin-card .checkin-bar a.checkin-login-btn {
    font-size: 12px !important;
    padding: 8px 12px 9px !important;
    white-space: nowrap;
}
.checkin-swal-list {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
}
.checkin-swal-list li {
    padding: 8px 12px;
    margin-bottom: 6px;
    background: rgba(255,79,163,.08);
    border-radius: 8px;
    font-weight: 600;
}
.checkin-swal-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkin-swal-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex: 0 0 48px;
    border-radius: 10px;
    background: rgba(0,0,0,.15);
}
.checkin-swal-item.is-account {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 12px 12px;
    gap: 12px;
}
.checkin-swal-item.is-account img {
    width: 168px;
    height: 168px;
    flex: 0 0 auto;
    align-self: center;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.checkin-swal-body {
    width: 100%;
}
.checkin-swal-name {
    font-weight: 700;
    text-align: center;
    font-size: 16px;
    margin-bottom: 8px;
}
.checkin-swal-amount {
    text-align: center;
    font-size: 13px;
    margin-bottom: 8px;
    opacity: .85;
}
.checkin-swal-acc {
    font-weight: 500;
    font-size: 13px;
    margin-top: 4px;
    opacity: .92;
}
.checkin-swal-cred {
    margin-bottom: 8px;
    text-align: left;
}
.checkin-swal-cred-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #7a4a62;
    margin-bottom: 4px;
}
.checkin-swal-cred-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.swal2-popup .checkin-swal-cred-val,
.swal2-html-container input.checkin-swal-cred-val {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    height: 40px !important;
    box-sizing: border-box !important;
    border: 1px solid #e8c3d4 !important;
    border-radius: 8px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    background: #fff !important;
    color: #222 !important;
}
.swal2-popup .checkin-copy-btn,
.swal2-html-container button.checkin-copy-btn {
    flex: 0 0 auto !important;
    min-width: 68px !important;
    height: 40px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #ff4fa3 !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer;
    padding: 0 12px !important;
}
.swal2-popup .checkin-copy-btn.is-copied,
.swal2-html-container button.checkin-copy-btn.is-copied {
    background: #22c55e !important;
}
.checkin-swal-error {
    color: #b91c1c;
    background: rgba(185,28,28,.1) !important;
}
.swal2-popup.checkin-swal-popup {
    width: 28em;
    max-width: calc(100vw - 24px);
}
.swal2-popup.checkin-swal-popup .checkin-swal-html {
    overflow: visible;
}
.checkin-swal-gifts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 12px;
}
.checkin-swal-gifts .checkin-swal-item {
    flex-direction: column;
    text-align: center;
    min-width: 88px;
    padding: 10px 8px;
    background: rgba(255,79,163,.08);
    border-radius: 12px;
}
.checkin-swal-gifts .checkin-swal-item img {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
}
.checkin-swal-hint {
    font-size: 14px;
    margin: 0 0 10px;
    color: #555;
}
.checkin-swal-fields {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}
.swal2-popup .checkin-swal-field,
.swal2-html-container input.checkin-swal-field,
.swal2-html-container input[type="text"].checkin-swal-field,
.swal2-html-container input[type="password"].checkin-swal-field {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    height: 44px !important;
    padding: 8px 12px !important;
    border: 1px solid #d0d7de !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    background: #fff !important;
}
@keyframes checkin-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
@keyframes checkin-pulse {
    0%, 100% { box-shadow: 0 0 0 2px #ffd56a, 0 0 12px rgba(255,79,163,.55); }
    50% { box-shadow: 0 0 0 3px #ffe08a, 0 0 22px rgba(255,79,163,.95); }
}
@keyframes checkin-shine {
    0% { transform: translateX(-130%); }
    40%, 100% { transform: translateX(130%); }
}
@keyframes checkin-btn-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(255,79,163,.35); }
    50% { box-shadow: 0 0 16px rgba(255,122,61,.7); }
}
@media (prefers-reduced-motion: reduce) {
    .checkin-icon img,
    .checkin-day.is-today .checkin-icon,
    .checkin-day.is-today .checkin-shine,
    .checkin-card .checkin-claim-btn,
    .checkin-claim-shine {
        animation: none;
    }
}
@media (max-width: 640px) {
    .checkin-title {
        font-size: .92rem;
    }
    .checkin-day {
        flex-basis: 64px;
    }
}
