:root {
    font-size: 123.75%;
    color-scheme: light;
}

html,
body,
#root,
main {
    min-height: 100%;
    background: #e3f4e7 !important;
    color: #183b2a !important;
}

body {
    margin: 0;
}

.hero-card {
    overflow: hidden;
    border: 1px solid #b9ddc2;
    border-radius: 18px;
    background: #f4fcf6 !important;
    box-shadow: 0 12px 30px rgba(25, 73, 48, 0.12);
}

.forum-tabs,
.download-card,
.account-card,
.support-card,
.zing-card {
    border: 1px solid #bfe0c7 !important;
    border-radius: 14px !important;
    background: #f4fcf6 !important;
    box-shadow: 0 6px 18px rgba(25, 105, 57, 0.10);
}

.forum-tabs {
    padding: 5px;
}

.forum-tabs > div {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    border: 0 !important;
}

.forum-tabs button {
    display: inline-flex !important;
    min-width: 0;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 4px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #52705d !important;
    font-size: 0.72rem !important;
    line-height: 1.15;
    white-space: nowrap;
    opacity: 1 !important;
}

.forum-tabs button:first-child {
    background: #d9f3e0 !important;
    color: #176b3a !important;
}

.forum-tabs button svg {
    width: 17px;
    height: 17px;
}

.action-grid {
    align-items: stretch !important;
}

.download-card,
.account-card,
.support-card {
    padding: 18px !important;
}

.download-card h3,
.support-card h3 {
    color: #145c35 !important;
    letter-spacing: 0.035em;
}

.download-card a,
.account-card button,
.support-card a {
    min-height: 44px;
    border-radius: 10px !important;
    border-width: 1px !important;
    box-shadow: none !important;
}

.download-card > div:last-child > a:first-child {
    background: linear-gradient(135deg, #166534, #15803d) !important;
    border-color: #166534 !important;
    color: #fff !important;
}

.download-card a[href*="platform=android"] {`r`n    background: linear-gradient(135deg, #16a34a, #22c55e) !important;`r`n    border-color: #15803d !important;`r`n    color: #fff !important;`r`n    box-shadow: 0 5px 12px rgba(22, 163, 74, 0.22) !important;
}

.download-card a[href*="platform=ipa"] {`r`n    background: linear-gradient(135deg, #0f766e, #14b8a6) !important;`r`n    border-color: #0f766e !important;`r`n    color: #fff !important;`r`n    box-shadow: 0 5px 12px rgba(15, 118, 110, 0.22) !important;
}

.download-card a[href*="platform=testflight"] {`r`n    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;`r`n    border-color: #1d4ed8 !important;`r`n    color: #fff !important;`r`n    box-shadow: 0 5px 12px rgba(37, 99, 235, 0.22) !important;
}

.download-card a[aria-disabled="true"] {`r`n    background: #d1fae5 !important;`r`n    border-color: #86efac !important;`r`n    color: #4b7a5d !important;`r`n    opacity: 1 !important;`r`n    box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.05) !important;
}

.account-card button {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #166534 !important;
}

.support-card {
    color: #315d44 !important;
}

.support-card a {
    background: #e9f3ec !important;
    border-color: #d1e4d6 !important;
    color: #72907c !important;
    opacity: 1 !important;
}

@media (max-width: 640px) {
    :root {
        font-size: 100%;
    }

    .hero-card {
        margin: 12px 12px 14px !important;
        border-radius: 14px;
    }

    .hero-card > div {
        height: 250px !important;
    }

    main > div:nth-of-type(2) {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .forum-tabs button {
        min-height: 58px;
        flex-direction: column;
        gap: 4px;
        font-size: 0.7rem !important;
    }

    .action-grid {
        gap: 12px !important;
    }

    .download-card,
    .account-card,
    .support-card {
        padding: 15px !important;
    }

    .download-card .grid-cols-2,
    .account-card .grid-cols-2 {
        gap: 8px !important;
    }
}

.download-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.download-confirm-modal[hidden] { display: none; }

.download-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 45, 27, 0.55);
    backdrop-filter: blur(4px);
}

.download-confirm-dialog {
    position: relative;
    width: min(100%, 380px);
    padding: 26px;
    border: 1px solid #a7d7b3;
    border-radius: 18px;
    background: #f8fff9;
    color: #183b2a;
    text-align: center;
    box-shadow: 0 24px 60px rgba(15, 80, 42, 0.28);
}

.download-confirm-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
}

.download-confirm-dialog h3 { margin: 0 0 8px; font-size: 1.05rem; }
.download-confirm-dialog p { margin: 0; color: #52705d; font-size: 0.88rem; line-height: 1.55; }
.download-confirm-dialog strong { color: #166534; }

.download-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.download-confirm-actions button {
    min-height: 44px;
    border: 1px solid #b8d9c0;
    border-radius: 10px;
    background: #fff;
    color: #315d44;
    font-weight: 700;
    cursor: pointer;
}

#download-confirm-accept {
    border-color: #15803d;
    background: linear-gradient(135deg, #15803d, #22c55e);
    color: #fff;
}
.account-card button[data-auth-open="register-modal"] {
    border-color: #15803d !important;
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
    color: #fff !important;
    box-shadow: 0 5px 12px rgba(22, 163, 74, 0.2) !important;
}

.account-card button[data-auth-open="panel-login-modal"] {
    border-color: #f3a35c !important;
    background: linear-gradient(135deg, #fff1e5, #ffd9b8) !important;
    color: #b45309 !important;
    box-shadow: 0 5px 12px rgba(234, 112, 20, 0.14) !important;
}

.account-card button[data-auth-open]:hover {
    filter: brightness(0.97);
    transform: translateY(-1px);
}
.system-notice-list {
    margin: 0;
    padding: 2px 0 2px 1.45rem;
    color: #315d44;
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.65;
}

.system-notice-list li {
    padding-left: 4px;
}

.system-notice-list li::marker {
    color: #15803d;
    font-weight: 900;
}
.support-card:has(.system-notice-list) {
    overflow: hidden;
    padding: 0 !important;
    border-color: #a7d8b3 !important;
    background: linear-gradient(145deg, #f8fff9, #e9f8ed) !important;
}

.system-notice-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border-bottom: 1px solid #cce7d2;
    background: linear-gradient(135deg, #dff6e5, #f1fbf3);
}

.system-notice-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #15803d, #22c55e);
    color: #fff;
    box-shadow: 0 6px 14px rgba(21, 128, 61, 0.22);
}

.system-notice-heading strong,
.system-notice-heading small {
    display: block;
}

.system-notice-heading strong {
    color: #14532d;
    font-size: 0.9rem;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.system-notice-heading small {
    margin-top: 2px;
    color: #5d7b67;
    font-size: 0.7rem;
}

.system-notice-list {
    display: grid;
    counter-reset: notice-item;
    gap: 8px;
    margin: 0;
    padding: 14px 16px 16px;
    list-style: none;
}

.system-notice-list li {
    position: relative;
    min-height: 42px;
    padding: 10px 11px 10px 42px;
    border: 1px solid #d1e9d6;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    color: #315d44;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.45;
    counter-increment: notice-item;
}

.system-notice-list li::before {
    position: absolute;
    top: 50%;
    left: 10px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 8px;
    background: #dcfce7;
    color: #15803d;
    font-size: 0.7rem;
    font-weight: 900;
    content: counter(notice-item);
    transform: translateY(-50%);
}

.system-notice-list li:hover {
    border-color: #86d19a;
    background: #fff;
}

@media (max-width: 480px) {
    .download-confirm-modal { padding: 16px; }
    .download-confirm-dialog {
        width: min(100%, 304px);
        padding: 21px;
        border-radius: 14px;
    }
    .download-confirm-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 11px;
    }
    .download-confirm-dialog h3 { margin-bottom: 6px; font-size: 0.95rem; }
    .download-confirm-dialog p { font-size: 0.8rem; line-height: 1.5; }
    .download-confirm-actions { gap: 8px; margin-top: 18px; }
    .download-confirm-actions button { min-height: 36px; }
}
.forum-tabs .zalo-tab {
    display: inline-flex !important;
    min-width: 0;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 4px !important;
    border: 1px solid #b9dcff !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #eaf6ff, #d9eeff) !important;
    color: #0877c9 !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    line-height: 1.15;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 2px 7px rgba(0, 104, 190, 0.10);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important;
}

.forum-tabs .zalo-tab:hover {
    background: linear-gradient(135deg, #1689e8, #0874c9) !important;
    border-color: #0874c9 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 104, 190, 0.24);
}

.forum-tabs .zalo-tab svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 640px) {
    .forum-tabs .zalo-tab {
        min-height: 58px;
        flex-direction: column;
        gap: 4px;
        font-size: 0.7rem !important;
    }
}

.download-card a[href*="platform=windows"] {
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
    border-color: #1d4ed8 !important;
    color: #fff !important;
    box-shadow: 0 5px 12px rgba(37, 99, 235, 0.22) !important;
}

.download-card a[href*="platform=windows"]:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
    transform: translateY(-1px);
}


/* Keep the registration/download column level with the notice card. */
.action-grid > .flex.flex-col {
    height: 100%;
}

.action-grid > .flex.flex-col > .download-card {
    flex: 1 1 auto;
}
