.dc-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px 12px 86px;
    background: rgba(0, 0, 0, .48);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.dc-overlay.is-open { display: flex; }
.dc-dialog {
    position: relative;
    width: min(442px, calc(100vw - 24px));
    max-height: min(82dvh, 700px);
    border-radius: 12px;
    background: #fff;
    color: #171717;
    box-shadow: 0 22px 80px rgba(0,0,0,.35);
    overflow: hidden;
    font-family: inherit;
    display: flex;
    flex-direction: column;
}
.dc-content {
    position: relative;
    z-index: 2;
    padding: 18px 24px 14px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}
.dc-top-art {
    position: absolute;
    top: -58px;
    left: 0;
    right: 0;
    height: 84px;
    pointer-events: none;
    z-index: 1;
}
.dc-top-art::before,
.dc-top-art::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 58%;
    height: 58px;
    background: #fff;
    border-radius: 50px 50px 0 0;
}
.dc-top-art::before { left: 0; }
.dc-top-art::after { right: 0; }
.dc-calendar {
    position: absolute;
    left: 50%;
    top: 9px;
    transform: translateX(-50%);
    width: 72px;
    height: 58px;
    border-radius: 9px;
    background: linear-gradient(180deg, #ff6c3a 0 16px, #ffe173 16px 100%);
    border: 3px solid #ffcf52;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff9a00;
    font-size: 36px;
    line-height: 1;
    font-weight: 900;
    text-shadow: 0 1px #fff;
    box-shadow: 0 8px 18px rgba(255,113,0,.25);
    z-index: 2;
}
.dc-envelope {
    position: absolute;
    width: 42px;
    height: 32px;
    border-radius: 5px;
    background: linear-gradient(135deg, #ff3154, #ff7882);
    box-shadow: 0 10px 18px rgba(255,49,84,.35);
    z-index: 1;
}
.dc-envelope::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffe269;
    left: 8px;
    top: 10px;
}
.dc-envelope-1 { left: 34px; top: 26px; transform: rotate(31deg); }
.dc-envelope-2 { left: 116px; top: 17px; transform: rotate(16deg); }
.dc-envelope-3 { right: 116px; top: 17px; transform: rotate(-16deg); }
.dc-envelope-4 { right: 34px; top: 26px; transform: rotate(-31deg); }
.dc-close-x {
    display: none;
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    font-size: 26px;
    color: #aaa;
    line-height: 1;
    z-index: 4;
}
.dc-title {
    margin: 0 0 10px;
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    color: #1d1d1d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dc-meta-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: #aaa;
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 12px;
}
.dc-meta-muted { flex: 1 1 160px; min-width: 0; }
.dc-meta-muted strong { color: #777; }
#dc-completed,
.dc-refresh,
#dc-deposit-now,
#dc-wager-now { color: #ff8a00; }
.dc-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    padding: 0 0 0 4px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.dc-desc-short {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.18;
    color: #222;
}
.dc-countdown {
    margin: 0 0 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff6e7;
    border: 1px solid #ffd28a;
    color: #9b5a00;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    text-align: center;
}
.dc-countdown span {
    display: inline-block;
    min-width: 74px;
    color: #ff4e00;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .4px;
}
.dc-loading {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ff8a00;
    font-weight: 700;
}
.dc-body {
    min-height: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.dc-scroll-area {
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(min(82dvh, 700px) - 282px);
    overflow-y: auto;
    padding-right: 6px;
    padding-bottom: 14px;
}
.dc-scroll-area::-webkit-scrollbar { width: 4px; }
.dc-scroll-area::-webkit-scrollbar-track { background: transparent; }
.dc-scroll-area::-webkit-scrollbar-thumb { background: #ddd; border-radius: 999px; }
.dc-reward-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.dc-reward-card {
    min-height: 158px;
    border-radius: 8px;
    background: #f8f8f8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    position: relative;
    border: 2px solid transparent;
}
.dc-reward-card.is-current { border-color: #88dd4b; }
.dc-reward-card.is-claimed { opacity: .72; }
.dc-reward-icon {
    width: 68px;
    height: 68px;
    object-fit: contain;
    margin-bottom: 8px;
}
.dc-reward-amount {
    min-height: 20px;
    color: #ffae00;
    font-size: clamp(11px, 2.8vw, 14px);
    line-height: 1.18;
    font-weight: 800;
    text-align: center;
    word-break: break-word;
}
.dc-reward-day {
    margin-top: 8px;
    color: #aaa;
    font-size: 16px;
    font-weight: 700;
}
.dc-claim-btn {
    border: 0;
    min-width: 78px;
    height: 26px;
    border-radius: 999px;
    background: #08be00;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    margin-top: 5px;
    cursor: pointer;
}
.dc-claim-btn:disabled {
    background: #b8b8b8;
    cursor: not-allowed;
}
.dc-section {
    margin-top: 12px;
    background: #f8f8f8;
    border-radius: 8px;
    padding: 0 16px 14px;
    overflow: hidden;
}
.dc-section-title {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin-left: -16px;
    margin-bottom: 12px;
    padding: 0 24px 0 16px;
    background: #ff8a00;
    color: #111;
    font-size: 18px;
    line-height: 38px;
    font-weight: 400;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
}
.dc-section-title em { font-style: normal; }
.dc-section-text {
    color: #6b6b6b;
    font-size: 15px;
    line-height: 1.65;
    white-space: pre-line;
}
.dc-condition-bar {
    position: relative;
    z-index: 3;
    min-height: 50px;
    display: flex;
    justify-content: space-between;
    gap: 8px 14px;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 24px 12px;
    background: #fff;
    border-top: 1px solid rgba(255, 138, 0, .12);
    border-radius: 0 0 12px 12px;
    color: #aaa;
    font-size: 13px;
    line-height: 1.28;
    box-shadow: 0 -8px 18px rgba(255,255,255,.94);
}
.dc-condition-bar > div { flex: 1 1 160px; min-width: 0; }
.dc-condition-bar > div:last-child { text-align: right; }
.dc-condition-bar strong { color: #111; font-weight: 700; }
.dc-close-bottom {
    position: fixed;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: transparent;
    color: #fff;
    font-size: 32px;
    line-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
body.dc-lock { overflow: hidden !important; }
@media (max-width: 480px) {
    .dc-overlay { padding: 76px 8px 72px; align-items: flex-start; }
    .dc-dialog { width: min(442px, calc(100vw - 16px)); max-height: calc(100dvh - 154px); }
    .dc-content { padding: 16px 16px 12px; }
    .dc-title { font-size: 20px; margin-bottom: 8px; }
    .dc-meta-row { font-size: 12.5px; gap: 6px 10px; margin-bottom: 10px; }
    .dc-desc-short { font-size: 13px; line-height: 1.22; margin-bottom: 10px; }
    .dc-countdown { padding: 7px 8px; margin-bottom: 10px; }
    .dc-scroll-area { max-height: max(250px, calc(100dvh - 520px)); padding-bottom: 12px; }
    .dc-reward-grid { gap: 8px; }
    .dc-reward-card { min-height: 128px; padding: 8px 4px; }
    .dc-reward-icon { width: 48px; height: 48px; margin-bottom: 6px; }
    .dc-reward-amount { font-size: 11px; min-height: 30px; }
    .dc-claim-btn { min-width: 68px; height: 24px; font-size: 11px; }
    .dc-reward-day { font-size: 13px; margin-top: 6px; }
    .dc-condition-bar { padding: 8px 16px 10px; font-size: 12px; min-height: 0; gap: 6px 12px; }
    .dc-condition-bar > div { flex: 1 1 100%; text-align: left !important; }
    .dc-envelope-1 { left: 22px; }
    .dc-envelope-2 { left: 88px; }
    .dc-envelope-3 { right: 88px; }
    .dc-envelope-4 { right: 22px; }
}
@media (max-width: 380px) {
    .dc-content { padding-left: 12px; padding-right: 12px; }
    .dc-reward-grid { gap: 7px; }
    .dc-reward-card { min-height: 116px; }
    .dc-reward-icon { width: 42px; height: 42px; }
    .dc-reward-amount { font-size: 10.5px; }
    .dc-condition-bar { font-size: 11px; padding-left: 12px; padding-right: 12px; }
}


/* v35 hardening: tránh giao diện điểm danh bị tràn/đè footer trên màn hình thấp */
.dc-dialog {
    overflow: hidden;
    max-height: calc(100dvh - 132px);
}
.dc-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 14px;
}
.dc-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}
.dc-scroll-area {
    max-height: none;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 18px;
}
.dc-condition-bar {
    position: relative;
    flex-shrink: 0;
    bottom: auto;
    left: auto;
    right: auto;
}
.dc-reward-grid { padding-bottom: 6px; }
@media (max-width: 480px) {
    .dc-overlay { padding-top: 74px; padding-bottom: 64px; }
    .dc-dialog { max-height: calc(100dvh - 142px); }
    .dc-content { max-height: none; padding-bottom: 10px; }
    .dc-title { font-size: 19px; }
    .dc-meta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .dc-meta-muted { flex: none; font-size: 12px; }
    .dc-desc-short { font-size: 12.5px; line-height: 1.12; }
    .dc-reward-grid { gap: 7px; }
    .dc-reward-card { min-height: 112px; padding: 7px 3px; }
    .dc-reward-icon { width: 42px; height: 42px; margin-bottom: 5px; }
    .dc-reward-day { font-size: 12px; margin-top: 4px; }
    .dc-reward-amount { font-size: 10.5px; min-height: 18px; }
    .dc-claim-btn { min-width: 62px; height: 22px; font-size: 10px; margin-top: 4px; }
    .dc-section { margin-top: 8px; padding-bottom: 10px; }
    .dc-section-title { min-height: 32px; line-height: 32px; font-size: 14px; margin-bottom: 8px; }
    .dc-section-text { font-size: 12.5px; line-height: 1.45; }
    .dc-condition-bar { min-height: 44px; font-size: 11px; padding: 6px 12px; }
    .dc-close-bottom { bottom: 18px; }
}

@media (max-width: 360px) {
    .dc-reward-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dc-scroll-area { max-height: max(270px, calc(100dvh - 500px)); }
}


/* v36 hardening: fix popup điểm danh trên màn hình nhỏ và tránh chèn footer */
.dc-dialog {
    display: flex;
    flex-direction: column;
    height: min(82dvh, 700px);
}
.dc-content {
    flex: 1 1 auto;
    max-height: none;
    padding-bottom: 10px;
}
.dc-body {
    flex: 1 1 auto;
    min-height: 0;
}
.dc-scroll-area {
    flex: 1 1 auto;
    max-height: none;
    height: auto;
    padding-bottom: 14px;
}
.dc-condition-bar {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    z-index: 5;
    flex-wrap: wrap;
    row-gap: 4px;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.dc-condition-bar > div {
    min-width: calc(50% - 4px);
}
.dc-reward-card {
    min-height: 136px;
}
.dc-reward-amount {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
@media (max-width: 480px) {
    .dc-dialog { height: calc(100dvh - 142px); }
    .dc-content { padding-bottom: 8px; }
    .dc-scroll-area { padding-bottom: 10px; }
    .dc-reward-card { min-height: 118px; }
    .dc-condition-bar { min-height: 48px; padding: 6px 12px 7px; }
    .dc-condition-bar > div { min-width: 100%; text-align: left !important; }
}
@media (max-width: 380px) {
    .dc-dialog { height: calc(100dvh - 136px); }
    .dc-reward-grid { gap: 6px; }
    .dc-reward-card { min-height: 110px; }
}


/* v37 final hardening: ổn định popup điểm danh trên mobile */
.dc-dialog {
    width: min(442px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    height: min(82dvh, 700px);
    max-height: min(82dvh, 700px);
}
.dc-content {
    padding-bottom: 8px;
}
.dc-scroll-area {
    overflow-y: auto;
    overscroll-behavior: contain;
}
.dc-condition-bar {
    flex-wrap: wrap;
    gap: 4px 10px;
}
.dc-condition-bar > div {
    flex: 1 1 calc(50% - 5px);
    min-width: calc(50% - 5px);
}
@media (max-width: 480px) {
    .dc-dialog {
        width: calc(100vw - 14px);
        max-width: calc(100vw - 14px);
        height: calc(100dvh - 138px);
        max-height: calc(100dvh - 138px);
    }
    .dc-content {
        padding: 15px 14px 8px;
    }
    .dc-scroll-area {
        padding-right: 4px;
        padding-bottom: 8px;
    }
    .dc-reward-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
    .dc-reward-card {
        min-height: 108px;
        padding: 7px 3px;
    }
    .dc-reward-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 4px;
    }
    .dc-reward-amount {
        min-height: 16px;
        font-size: 10px;
        line-height: 1.12;
    }
    .dc-reward-day {
        margin-top: 4px;
        font-size: 11px;
    }
    .dc-claim-btn {
        min-width: 58px;
        height: 21px;
        font-size: 9.5px;
        margin-top: 4px;
    }
    .dc-section {
        margin-top: 8px;
        padding: 0 12px 10px;
    }
    .dc-section-title {
        min-height: 30px;
        line-height: 30px;
        font-size: 13px;
        padding-right: 18px;
    }
    .dc-section-text,
    .dc-desc-short {
        font-size: 12px;
        line-height: 1.35;
    }
    .dc-condition-bar {
        padding: 6px 10px 8px;
        font-size: 10.5px;
        gap: 3px 8px;
    }
    .dc-condition-bar > div {
        flex: 1 1 100%;
        min-width: 100%;
        text-align: left !important;
    }
}
@media (max-width: 380px) {
    .dc-dialog {
        width: calc(100vw - 10px);
        max-width: calc(100vw - 10px);
        height: calc(100dvh - 130px);
        max-height: calc(100dvh - 130px);
    }
    .dc-content {
        padding-left: 10px;
        padding-right: 10px;
    }
    .dc-reward-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
    .dc-reward-card {
        min-height: 104px;
    }
}


/* v38: khóa layout điểm danh để không tràn footer/khung trên mọi màn hình nhỏ */
.dc-dialog {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    max-height: calc(100dvh - 128px) !important;
    height: min(700px, calc(100dvh - 128px)) !important;
}
.dc-content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding-bottom: 8px !important;
}
.dc-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}
.dc-scroll-area {
    max-height: none !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding-bottom: 10px !important;
}
.dc-condition-bar {
    position: relative !important;
    flex: 0 0 auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 6 !important;
}
@media (max-width: 480px) {
    .dc-overlay { padding-top: 72px !important; padding-bottom: 58px !important; }
    .dc-dialog { height: calc(100dvh - 130px) !important; max-height: calc(100dvh - 130px) !important; }
    .dc-content { padding: 14px 12px 7px !important; }
    .dc-title { font-size: 18px !important; margin-bottom: 6px !important; }
    .dc-meta-row { margin-bottom: 8px !important; }
    .dc-desc-short { font-size: 12px !important; line-height: 1.22 !important; margin-bottom: 8px !important; }
    .dc-countdown { margin-bottom: 8px !important; }
    .dc-reward-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 6px !important; }
    .dc-reward-card { min-height: 104px !important; padding: 6px 3px !important; }
    .dc-reward-icon { width: 38px !important; height: 38px !important; margin-bottom: 4px !important; }
    .dc-reward-amount { min-height: 15px !important; font-size: 9.5px !important; line-height: 1.1 !important; }
    .dc-claim-btn { min-width: 56px !important; height: 20px !important; font-size: 9px !important; }
    .dc-reward-day { font-size: 11px !important; margin-top: 4px !important; }
    .dc-section { margin-top: 8px !important; padding: 0 10px 9px !important; }
    .dc-section-title { min-height: 28px !important; line-height: 28px !important; font-size: 13px !important; margin-bottom: 8px !important; }
    .dc-section-text { font-size: 12px !important; line-height: 1.38 !important; }
    .dc-condition-bar { padding: 6px 10px 7px !important; font-size: 10.5px !important; gap: 3px !important; }
    .dc-condition-bar > div { flex: 1 1 100% !important; min-width: 100% !important; text-align: left !important; }
}
@media (max-width: 370px) {
    .dc-dialog { height: calc(100dvh - 122px) !important; max-height: calc(100dvh - 122px) !important; }
    .dc-reward-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .dc-reward-card { min-height: 100px !important; }
}


/* v44 mobile final: popup điểm danh hiển thị đầy đủ tiêu đề và không bị co nhỏ */
@media (max-width: 480px) {
    .dc-overlay {
        padding: max(18px, env(safe-area-inset-top)) 4px max(26px, env(safe-area-inset-bottom)) !important;
        align-items: flex-start !important;
    }

    .dc-dialog {
        width: calc(100vw - 8px) !important;
        max-width: 460px !important;
        height: calc(100dvh - 86px) !important;
        max-height: calc(100dvh - 86px) !important;
        border-radius: 16px !important;
    }

    .dc-top-art {
        top: -46px !important;
        height: 78px !important;
    }

    .dc-content {
        padding: 24px 12px 8px !important;
    }

    .dc-title {
        position: relative !important;
        z-index: 6 !important;
        display: block !important;
        visibility: visible !important;
        font-size: 20px !important;
        line-height: 1.15 !important;
        margin: 0 0 8px !important;
        padding-top: 4px !important;
        color: #1d1d1d !important;
    }

    .dc-meta-row,
    .dc-desc-short,
    .dc-countdown,
    .dc-body {
        position: relative !important;
        z-index: 6 !important;
    }

    .dc-close-x {
        display: block !important;
        z-index: 8 !important;
        top: 10px !important;
        right: 10px !important;
    }

    .dc-close-bottom {
        display: none !important;
    }

    .dc-reward-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }

    .dc-reward-card {
        min-height: 112px !important;
        padding: 7px 4px !important;
    }

    .dc-reward-icon {
        width: 42px !important;
        height: 42px !important;
    }

    .dc-reward-amount {
        font-size: 10.5px !important;
        min-height: 18px !important;
        line-height: 1.15 !important;
    }

    .dc-reward-day {
        font-size: 12px !important;
    }

    .dc-condition-bar {
        padding: 8px 12px 10px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 380px) {
    .dc-title {
        font-size: 18px !important;
    }

    .dc-dialog {
        height: calc(100dvh - 80px) !important;
        max-height: calc(100dvh - 80px) !important;
    }
}


/* v45 REAL FIX: hiện lại tiêu đề Điểm Danh Mỗi Ngày trên mobile */
@media (max-width: 520px) {
    .dc-overlay {
        padding: max(12px, env(safe-area-inset-top)) 4px max(22px, env(safe-area-inset-bottom)) !important;
        align-items: flex-start !important;
    }
    .dc-dialog {
        width: calc(100vw - 8px) !important;
        max-width: none !important;
        height: calc(100dvh - 74px) !important;
        max-height: calc(100dvh - 74px) !important;
        border-radius: 16px !important;
    }
    .dc-top-art {
        display: none !important;
    }
    .dc-content {
        padding: 14px 12px 8px !important;
    }
    .dc-title {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 30 !important;
        color: #1d1d1d !important;
        -webkit-text-fill-color: #1d1d1d !important;
        font-size: 21px !important;
        line-height: 1.18 !important;
        min-height: 26px !important;
        margin: 0 34px 8px 0 !important;
        padding: 0 !important;
        text-align: left !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    .dc-close-x {
        display: block !important;
        top: 8px !important;
        right: 10px !important;
        z-index: 40 !important;
        color: #777 !important;
    }
    .dc-close-bottom { display:none!important; }
    .dc-meta-row { font-size: 12px !important; gap: 4px 8px !important; margin-bottom: 8px !important; }
    .dc-desc-short { font-size: 12.5px !important; line-height: 1.25 !important; margin-bottom: 8px !important; }
    .dc-reward-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 7px !important; }
    .dc-reward-card { min-height: 118px !important; padding: 7px 4px !important; }
    .dc-reward-icon { width: 44px !important; height: 44px !important; }
    .dc-condition-bar { padding: 8px 12px 10px !important; font-size: 11px !important; }
}
@media (max-width: 380px) {
    .dc-title { font-size: 19px !important; }
    .dc-reward-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}


/* v46 FINAL REAL FIX: hiện rõ Điểm Danh Mỗi Ngày trên PC và mobile */
.dc-dialog{
    width:min(460px, calc(100vw - 20px)) !important;
    max-height:min(84dvh, 740px) !important;
}
.dc-top-art{
    display:none !important;
}
.dc-content{
    padding:18px 18px 12px !important;
}
.dc-title{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    position:relative !important;
    z-index:10 !important;
    margin:0 36px 10px 0 !important;
    padding:0 !important;
    color:#1d1d1d !important;
    -webkit-text-fill-color:#1d1d1d !important;
    font-size:24px !important;
    line-height:1.15 !important;
    text-align:center !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
}
.dc-close-x{
    display:block !important;
    top:8px !important;
    right:10px !important;
    z-index:20 !important;
}
.dc-close-bottom{display:none !important;}
.dc-meta-row{margin-bottom:10px !important;}
.dc-desc-short{font-size:13px !important; line-height:1.35 !important;}
.dc-reward-grid{gap:10px !important;}
.dc-condition-bar{font-size:12px !important;}

@media (max-width: 520px){
    .dc-overlay{
        padding:max(10px, env(safe-area-inset-top)) 2px max(18px, env(safe-area-inset-bottom)) !important;
        align-items:flex-start !important;
    }
    .dc-dialog{
        width:calc(100vw - 4px) !important;
        height:calc(100dvh - 74px) !important;
        max-height:calc(100dvh - 74px) !important;
        border-radius:16px !important;
    }
    .dc-content{padding:14px 12px 8px !important;}
    .dc-title{
        font-size:22px !important;
        text-align:left !important;
        margin:0 34px 8px 0 !important;
    }
    .dc-meta-row{font-size:12px !important; gap:4px 8px !important;}
    .dc-desc-short{font-size:12.5px !important;}
    .dc-reward-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:7px !important;}
    .dc-reward-card{min-height:118px !important; padding:7px 4px !important;}
}

@media (max-width: 380px){
    .dc-title{font-size:20px !important;}
    .dc-reward-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
