.hiwawa-checkin-trigger {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--brand, #ff6b35) 0%, var(--brand-2, #ff9f1c) 100%);
    border: none; cursor: pointer; transition: transform .2s, box-shadow .2s;
    text-decoration: none; white-space: nowrap;
}
.hiwawa-checkin-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 107, 53, .35);
}
.hiwawa-checkin-trigger.is-checked {
    background: #e2e8f0; color: #64748b; cursor: default; box-shadow: none;
}

.hiwawa-checkin-overlay {
    --brand: #ff6b35;
    --brand-2: #ff9f1c;
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
}
.hiwawa-checkin-overlay[hidden] { display: none; }
.hiwawa-checkin-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.hiwawa-checkin-panel {
    position: relative; z-index: 1; background: #fff; border-radius: 20px;
    padding: 0; min-width: 0; max-width: 680px; width: min(680px, calc(100% - 40px));
    animation: checkinIn .3s ease; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
@keyframes checkinIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

.hiwawa-checkin-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 2;
}

.hiwawa-checkin-head {
    background: linear-gradient(135deg, var(--brand, #ff6b35) 0%, var(--brand-2, #ff9f1c) 100%);
    padding: 22px 20px 16px; text-align: center; color: #fff;
}
.hiwawa-checkin-title {
    font-size: 19px; font-weight: 800; margin: 0 0 4px; color: #fff;
    -webkit-text-fill-color: #fff; background: none;
}
.hiwawa-checkin-subtitle { margin: 0; font-size: 12px; opacity: .92; }

.hiwawa-checkin-body {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 14px 16px;
    padding: 16px 20px 14px;
}

.hiwawa-checkin-col--cal,
.hiwawa-checkin-col--rewards {
    flex: 1 1 0;
    min-width: 0;
}

.hiwawa-checkin-calendar {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hiwawa-checkin-cal-nav {
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
}
.hiwawa-checkin-cal-month {
    font-size: 14px; font-weight: 700; color: #1e293b;
}

.hiwawa-checkin-cal-weekdays {
    display: grid; grid-template-columns: repeat(7, 1fr);
    text-align: center; font-size: 11px; font-weight: 600; color: #94a3b8;
    margin-bottom: 6px; gap: 2px;
}

.hiwawa-checkin-cal-grid {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.hiwawa-checkin-cal-cell {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    aspect-ratio: 1; border-radius: 8px;
    font-size: 13px; color: #475569;
    transition: background .15s; min-height: 0;
}
.hiwawa-checkin-cal-cell--empty { visibility: hidden; }
.hiwawa-checkin-cal-cell__num { font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; font-size: 13px; }

.hiwawa-checkin-cal-cell.is-today {
    background: #fff7ed; font-weight: 700; color: #0f172a;
    box-shadow: inset 0 0 0 1.5px var(--brand, #ff6b35);
}
.hiwawa-checkin-cal-cell.is-checked {
    background: rgba(255, 107, 53, .12);
    color: #c2410c;
}
.hiwawa-checkin-cal-cell.is-checked.is-today {
    background: linear-gradient(135deg, var(--brand, #ff6b35) 0%, var(--brand-2, #ff9f1c) 100%);
    color: #fff;
    box-shadow: 0 1px 6px rgba(255, 107, 53, .35);
}
.hiwawa-checkin-cal-cell__mark {
    position: absolute; bottom: 3px; font-size: 9px; color: var(--brand, #ff6b35); line-height: 1;
}
.hiwawa-checkin-cal-cell.is-checked.is-today .hiwawa-checkin-cal-cell__mark { color: #fff; }

.hiwawa-checkin-rewards {
    padding: 0;
    max-height: 360px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.hiwawa-checkin-rewards__title {
    font-size: 15px; font-weight: 700; color: #1e293b; margin: 0 0 10px;
    display: flex; align-items: center; gap: 6px;
}
.hiwawa-checkin-rewards__title i { color: var(--brand, #ff6b35); }

.hiwawa-checkin-reward-default {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px; border-radius: 10px;
    background: #f8fafc; border: 1px solid #e2e8f0;
    margin-bottom: 8px;
}
.hiwawa-checkin-reward-default__label {
    font-size: 13px; font-weight: 600; color: #475569;
}
.hiwawa-checkin-reward-default__val {
    font-size: 13px; font-weight: 600; color: #1e293b;
    display: flex; align-items: center; gap: 4px;
}

.hiwawa-checkin-milestones {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.hiwawa-checkin-ms {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: 10px;
    border: 1px solid #e2e8f0; background: #fff;
    font-size: 12px; transition: all .2s;
    flex: 0 0 auto;
}
.hiwawa-checkin-ms.is-done {
    background: #f0fdf4; border-color: #86efac;
}
.hiwawa-checkin-ms.is-active {
    background: #fff7ed;
    border-color: var(--brand, #ff6b35);
    box-shadow: 0 2px 8px rgba(255, 107, 53, .15);
}
.hiwawa-checkin-ms__day {
    font-weight: 700; color: #475569; white-space: nowrap;
}
.hiwawa-checkin-ms.is-active .hiwawa-checkin-ms__day { color: #c2410c; }
.hiwawa-checkin-ms__reward {
    display: flex; align-items: center; gap: 3px; font-weight: 600; color: #1e293b;
}
.hiwawa-checkin-ms__badge {
    font-size: 10px; color: #16a34a;
}
.hiwawa-checkin-ms__badge--now {
    color: #fff;
    background: linear-gradient(135deg, var(--brand, #ff6b35) 0%, var(--brand-2, #ff9f1c) 100%);
    padding: 2px 8px; border-radius: 10px;
    font-weight: 700; font-size: 10px;
}

.hiwawa-checkin-final {
    text-align: center; padding: 10px; border-radius: 10px;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px dashed #fbbf24;
    margin-bottom: 0;
    font-size: 12px; color: #92400e;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.hiwawa-checkin-final strong { color: #b45309; }
.hiwawa-checkin-final__icon { font-size: 16px; }

.hiwawa-checkin-foot {
    padding: 0 20px 18px;
    border-top: 1px solid #f1f5f9;
}

.hiwawa-checkin-btn {
    display: block; width: 100%; margin: 14px 0 0; padding: 13px;
    font-size: 16px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--brand, #ff6b35) 0%, var(--brand-2, #ff9f1c) 100%);
    border: none; border-radius: 50px; cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.hiwawa-checkin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 107, 53, .35);
}
.hiwawa-checkin-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.hiwawa-checkin-msg {
    text-align: center; margin: 0; padding: 10px 0 0;
    font-size: 14px; font-weight: 600;
}
.hiwawa-checkin-msg:empty { display: none; }
.hiwawa-checkin-msg--success { color: #16a34a; }
.hiwawa-checkin-msg--error { color: #ef4444; }
