html[data-theme="light"] {
    --bg: #ffffff;
    --text1: #111111;
    --text2: #ffffff;
    --card: #f5f5f5;
    --primary1: red;
    --primary2: #009BD7;
    --rgba1: rgba(0,0,0,0.3);
    --rgba2: rgba(0,0,0,0.1);
    --rgba3: rgba(0,0,0,0.7);
    --rgba4: rgba(255,255,255,0.3);
    --level: #c79cff;
    --level-soft: #ead4ff;
    --level-gradient: linear-gradient(90deg, #ead4ff 0%, #d7b3ff 35%, #c79cff 70%, #c28cff 100%);
    --premium: #6DADE6;
    --online: #22c55e;

    /* Variabel Khusus Carousel/Banner Light Mode */
    --pv-bg: #ffffff;
    --pv-bar-bg: #e5e7eb;
    --pv-dot-bg: #d1d5db;
    --pv-btn-bg: #111111;
    --pv-btn-shadow: rgba(0,0,0,0.3);
    --pv-btn-color: #2EEAFF;

}

html[data-theme="dark"] {
    --bg: #121212;
    --text1: #ffffff;
    --text2: #111111;
    --card: #1e1e1e;
    --primary1: red;
    --primary2: #009BD7;
    --rgba1: rgba(255,255,255,0.4);
    --rgba2: rgba(255,255,255,0.1);
    --rgba3: rgba(255,255,255,0.7);
    --rgba4: rgba(0,0,0,0.3);
    --level: #c79cff;
    --level-soft: #ead4ff;
    --level-gradient: linear-gradient(90deg, #ead4ff 0%, #d7b3ff 35%, #c79cff 70%, #c28cff 100%);
    --premium: #6DADE6;
    --online: #22c55e;

    /* Variabel Khusus Carousel/Banner Dark Mode */
    --pv-bg: #121212;
    --pv-bar-bg: #2a2a3e;
    --pv-dot-bg: #2a2a3e;
    --pv-btn-bg: #1e1e1e;
    --pv-btn-shadow: rgba(255,255,255,0.2);
    --pv-btn-color: #009BD7;
    /* Sesuai dengan primary2 atau custom */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", Sans-Serif;
}
body {
    width: 100%;
    background: var(--bg);
    transition: background 0.5s ease-in-out;
}
body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
    background: var(--bg);
    color: var(--text1);
    transition: background-color .3s, color .3s;
}
.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

.overlay1 {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: overlay1Fade .2s ease;
}
.overlay1[hidden] {
    display: none;
}

@keyframes overlay1Fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.overlay1 .modal {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 28px;
    border: 1px solid var(--rgba2);
    background: color-mix(in srgb, var(--card) 92%, transparent);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
    animation: modalPop .25s ease;
}

@keyframes modalPop {
    from {
        transform: scale(.96);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .overlay1, .modal {
        animation: none;
    }
}
.overlay1 .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--rgba2);
    background: transparent;
    color: var(--rgba3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color .15s, background-color .15s, transform .1s;
}
.overlay1 .modal-close:hover {
    color: var(--text1);
    background: var(--rgba2);
}
.overlay1 .modal-close:active {
    transform: scale(.92);
}
.overlay1 .modal-close svg {
    width: 16px;
    height: 16px;
}
.overlay1 .modal-header {
    position: relative;
    text-align: center;
    padding: 48px 40px 32px;
}
.overlay1 .modal-header::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    width: 380px;
    height: 170px;
    max-width: 90%;
    border-radius: 50%;
    filter: blur(60px);
    background-image: var(--level-gradient);
    opacity: .4;
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% {
        opacity: .3;
    }
    50% {
        opacity: .55;
    }
}
@media (prefers-reduced-motion: reduce) {
    .modal-header::before {
        animation: none;
        opacity: .4;
    }
}

.overlay1 .modal-title {
    position: relative;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(22px, 3.5vw, 34px);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--text1);
}
.overlay1 .modal-subtitle {
    position: relative;
    margin: 16px auto 0;
    max-width: 440px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--rgba1);
}

/* =========================================================
   7. KONTEN & KARTU FITUR
   ========================================================= */
.overlay1 .content {
    padding: 0 40px;
}

.overlay1 .feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.overlay1 .feature-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--rgba2);
    background: color-mix(in srgb, var(--card) 88%, transparent);
}
.overlay1 .feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.overlay1 .feature-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Warna icon per kategori */
.overlay1 .icon-blue {
    background: color-mix(in srgb, var(--primary2) 15%, transparent);
}
.overlay1 .icon-blue svg {
    stroke: var(--primary2);
}
.overlay1 .icon-green {
    background: color-mix(in srgb, var(--online) 15%, transparent);
}
.overlay1 .icon-green svg {
    stroke: var(--online);
}
.overlay1 .icon-orange {
    background: color-mix(in srgb, var(--accent-orange, #F97316) 15%, transparent);
}
.overlay1 .icon-orange svg {
    stroke: var(--accent-orange, #F97316);
}
.overlay1 .icon-purple {
    background: color-mix(in srgb, var(--level) 18%, transparent);
}
.overlay1 .icon-purple svg {
    stroke: var(--level);
}
.overlay1 .icon-gold {
    background: color-mix(in srgb, var(--accent-gold, #EAB308) 15%, transparent);
}
.overlay1 .icon-gold svg {
    stroke: var(--accent-gold, #EAB308);
}
.overlay1 .icon-red {
    background: color-mix(in srgb, var(--primary1) 15%, transparent);
}
.overlay1 .icon-red svg {
    stroke: var(--primary1);
}

.overlay1 .feature-title {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--text1);
}
.overlay1 .feature-desc {
    margin: 6px 0 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--rgba1);
}

.overlay1 .divider {
    position: relative;
    margin: 40px 40px 36px;
    border-top: 1px solid var(--rgba2);
}
.overlay1 .divider span {
    position: absolute;
    left: 50%;
    top: -12px;
    transform: translateX(-50%);
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    white-space: nowrap;
    background: var(--premium);
    color: var(--text2);
}

.overlay1 .modal-footer {
    position: sticky;
    bottom: 0;
    padding: 20px 40px;
    border-top: 1px solid var(--rgba2);
    background: color-mix(in srgb, var(--card) 92%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.overlay1 .price {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--text1);
}
.overlay1 .price small {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: var(--rgba1);
}

.overlay1 .footer-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.overlay1 .btn-subscribe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: var(--pv-btn-bg);
    color: var(--pv-btn-color);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 10px 30px -8px var(--pv-btn-shadow);
    transition: filter .15s, transform .1s;
}
.overlay1 .btn-subscribe:hover {
    filter: brightness(1.1);
}
.overlay1 .btn-subscribe:active {
    transform: scale(.98);
}
.overlay1 .btn-subscribe svg {
    width: 16px;
    height: 16px;
    transition: transform .15s;
}
.overlay1 .btn-subscribe:hover svg {
    transform: translateX(2px);
}

.overlay1 .terms {
    margin: 0;
    font-size: 12px;
    color: var(--rgba1);
    text-align: center;
}
.overlay1 .terms a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.overlay1 .terms a:hover {
    color: var(--text1);
}
@media (max-width: 640px) {
    .overlay1 .modal-header {
        padding: 40px 20px 24px;
    }
    .overlay1 .content {
        padding: 0 20px;
    }
    .overlay1 .divider {
        margin: 32px 20px 28px;
    }
    .overlay1 .modal-footer {
        padding: 16px 20px;
    }
    .overlay1 .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .overlay1 .modal-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .overlay1 .footer-actions {
        align-items: flex-end;
    }
    .overlay1 .terms {
        text-align: right;
    }
}
body .nav {
    width: 100%;
    height: 62px;
    display: flex;
    background: var(--bg);
    box-shadow: 0 0 3px var(--rgba1);
    transition: background 0.5s ease-in-out,box-shadow 0.5s ease-in-out;
    align-items: center;
    z-index: 9999;
    position: fixed;
    justify-content: space-between;
}
.nav #nav_shadow {
    position: absolute;
    width: 100%;
    background: var(--rgba1);
    transition: background 0.5s ease-in-out;
    height: 100%;
    opacity: 0;
    z-index: 999;
    display: none;
    transition: opacity 0.4s ease-in-out;
}
.nav .nav_a {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    margin-left: 6px;
}
.nav .nav_a .nav_bars {
    width: 26px;
    height: 26px;
    text-align: center;
    font-size: 18px;
    margin-left: 6px;
    align-content: center;
    color: var(--text1);
}
.nav .nav_a .logo_m {
    flex: none;
    width: clamp(100px, calc(50vw - 56px), 126px);
    height: auto;
    aspect-ratio: 1856 / 618;
    margin-left: 6px;
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
}
.nav .nav_b {
    width: 36%;
    height: 100%;
    display: flex;
    margin-right: 16px;
    align-items: center;
    justify-content: space-between;
}
.nav nav_b .nav_search {
    width: 24px;
    height: 24px;
    text-align: center;
    align-content: center;
}
.nav .nav_b .nav_search #search {
    background-size: cover;
    background-position: center;
    width: 16px;
    height: 16px;
}
.nav .nav_b .nav_mode {
    width: 24px;
    height: 24px;
    text-align: center;
    align-content: center;
}
.nav .nav_b .nav_mode #toggle_mode {
    background-size: cover;
    background-position: center;
    width: 20px;
    height: 20px;
}
.nav .nav_b .nav_bell {
    width: 20px;
    height: 20px;
}
.nav .nav_b .nav_bell #bell_num {
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    text-align: center;
    align-content: center;
    font-size: 7px;
    transform: translateY(-3px) translateX(5px);
    background: var(--primary1);
    color: white;
}
.nav .nav_b .nav_bell i {
    font-size: 16px;
    color: var(--text1);
}
.nav .nav_b .nav_avatar {
    width: 32px;
    z-index: 99;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    align-content: center;
    background: var(--rgba1);
    box-shadow: 0 0 3px var(--rgba1);
}
.nav .nav_b .nav_avatar #avatar {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 100%;
}
.nav .nav_b .nav_avatar #avatar i {
    font-size: 14px;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--rgba2);
    color: white;
    text-align: center;
    align-content: center;
}
#search_menu {
    width: 100%;
    position: fixed;
    display: block;
    height: 250px;
    z-index: 9998;
    background: var(--bg);
    box-shadow: 0 0 3px var(--rgba1);
    transform: translateY(-900px);
    transition: 0.4s ease-in-out;
    padding-top: 4px;
}
#search_menu #search_table {
    width: 90%;
    height: 40px;
    justify-self: center;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    display: flex;
    box-shadow: 0 0 4px var(--rgba1);
}
#search_menu #search_table .search_btn {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    text-align: center;
    align-content: center;
}
#search_menu #search_table .search_btn #search_btn {
    width: 15px;
    height: 15px;
    background-size: cover;
    background-position: center;
}
#search_menu #search_table #search_input {
    width: 74%;
    height: 28px;
    font-size: 14px;
    outline: none;
    margin-left: 10px;
    margin-right: 12px;
    border: none;
    color: var(--text1);
    background: transparent;
}
#search_menu #search_table #search_input::placeholder {
    color: var(--rgba3);
    /* warna placeholder */
}
#search_menu #search_table #search_input[type="text"],
#search_menu #search_table #search_input[type="search"] {
    background: transparent;
    color: var(--text1);
    border: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

#search_menu #search_table #search_input:-webkit-autofill,
#search_menu #search_table #search_input:-webkit-autofill:hover,
#search_menu #search_table #search_input:-webkit-autofill:focus,
#search_menu #search_table #search_input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: var(--text1) !important;
    transition: background-color 9999s;
}
#search_menu #search_table #search_close {
    width: 16px;
    height: 160px;
    text-align: center;
    align-content: center;
    font-size: 14px;
    transform: translateX(100px);
    position: absolute;
    display: none;
    color: var(--text1);
}
#search_menu #search_table .search_view {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    justify-items: center;
    align-content: center;
    background: var(--rgba1);
    box-shadow: 0 0 3px var(--rgba1);
    transition: 0.4s ease-in-out;
}
#search_menu #search_table .search_view #search_view {
    width: 16px;
    height: 16px;
    background-size: cover;
    background-position: center;
}
#search_menu #search_sugestion {
    width: 100%;
    height: 200px;
    display: block;
    justify-items: center;
    padding-top: 6px;
}
#search_menu #search_sugestion .search-item {
    width: 86%;
    height: 28px;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    display: flex;
    margin-bottom: 4px;
    color: var(--text1);
    font-size: 14px;
    margin-top: 4px;
    background: var(--rgba2);
    justify-content: center;
    box-shadow: 0 0 3px var(--rgba1);
}
#search_menu #search_sugestion .search-item .search_s {
    width: 9%;
    height: 100%;
    align-content: center;
    justify-items: center;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}
#search_menu #search_sugestion .search-item .search_s #search_s {
    width: 12px;
    height: 12px;
    background-size: cover;
    background-position: center;
}
#search_menu #search_sugestion .search-item .title {
    width: 74%;
    height: 100%;
    text-align: center;
    align-content: center;
    font-size: 14px;
    color: var(--text1);
}
#search_menu #search_sugestion .search-item i {
    width: 7%;
    height: 80%;
    border-radius: 6px;
    font-size: 10px;
    color: var(--text1);
    margin-right: 6px;
    text-align: center;
    background: var(--rgba2);
    align-content: center;
}
.xw-modal-overlay1 {
    position: fixed;
    inset: 0;
    background: var(--rgba1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-in-out;
    padding: 20px;
    box-sizing: border-box;
}
.xw-modal-overlay1.show {
    opacity: 1;
    pointer-events: auto;
}

.xw-modal-box {
    width: 100%;
    max-width: 340px;
    background: var(--bg);
    border-radius: 14px;
    box-shadow: 0 8px 32px var(--rgba1);
    padding: 22px 20px 18px;
    transform: scale(0.9) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
    border: 1px solid var(--rgba2);
}
.xw-modal-overlay1.show .xw-modal-box {
    transform: scale(1) translateY(0);
}

.xw-modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--rgba2);
    color: var(--primary1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 14px;
    box-shadow: 0 0 0 6px var(--rgba2);
}

.xw-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text1);
    text-align: center;
    margin-bottom: 6px;
}

.xw-modal-message {
    font-size: 13px;
    color: var(--rgba3);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 20px;
}

.xw-modal-actions {
    display: flex;
    gap: 10px;
}

.xw-modal-btn {
    flex: 1;
    height: 40px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-family: "Poppins", Sans-Serif;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.xw-modal-btn-cancel {
    background: var(--rgba2);
    color: var(--text1);
    border: 1px solid var(--rgba2);
}
.xw-modal-btn-cancel:hover {
    background: var(--rgba1);
}

.xw-modal-btn-confirm {
    background: var(--primary1);
    color: var(--text2);
    box-shadow: 0 3px 10px rgba(255, 0, 0, 0.25);
}
.xw-modal-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(255, 0, 0, 0.35);
}
.xw-modal-btn-confirm:active {
    transform: translateY(0);
}



#avatar_menu {
    width: 30%;
    min-height: 24px;
    transition: transform 0.3s ease-in-out;
    display: block;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    position: fixed;
    transform: translateY(-900px);
    background: var(--rgba2);
    box-shadow: 0 0 2px var(--rgba1);
    backdrop-filter: blur(6px);
    right: 4%;
    padding-bottom: 4px;
    z-index: 1;
    z-index: 9998;
}
#avatar_menu #profile_nav_menu {
    width: 90%;
    min-height: 15px;
    text-align: center;
    justify-self: center;
    background: white;
    color: black;
    font-size: 12px;
    margin-bottom: 6px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 0 0 3px var(--rgba1);
    align-content: center;
}
#avatar_menu #auth_btn {
    width: 90%;
    height: 18px;
    justify-content: center;
    align-items: center;
    justify-self: center;
    background: linear-gradient(
    135deg,
    #3B82F6 0%,
    #2563EB 55%,
    #4F46E5 100%
    );
    color: white;
    gap: 4px;
    display: flex;
    font-size: 12px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    box-shadow: 0 0 3px var(--rgba1);
}
#shadow_menu {
    width: 100%;
    display: none;
    height: 100%;
    opacity: 0;
    transition: 0.4s ease-in-out;
    z-index: 99998;
    position: fixed;
    background: var(--rgba1);
}
/* =========================================================
   MODAL PEMBAYARAN QRIS (MIDTRANS)
   ========================================================= */
.qris-box {
    position: relative;
    width: 100%;
    max-width: 380px;
    border-radius: 24px;
    border: 1px solid var(--rgba2);
    background: color-mix(in srgb, var(--card) 94%, transparent);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
    padding: 30px 24px 26px;
    text-align: center;
    animation: modalPop .25s ease;
}
@media (prefers-reduced-motion: reduce) {
    .qris-box {
        animation: none;
    }
}

.qris-head h2 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text1);
}
.qris-head p {
    margin: 6px 0 0;
    font-size: 12.5px;
    color: var(--rgba3);
}

.qris-code-wrap {
    position: relative;
    width: 210px;
    height: 210px;
    margin: 22px auto 0;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--rgba2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.qris-code-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}
.qris-box.is-loading .qris-code-wrap img {
    visibility: hidden;
}

.qris-spinner {
    display: none;
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid var(--rgba2);
    border-top-color: var(--primary1);
    animation: qrisSpin .8s linear infinite;
}
.qris-box.is-loading .qris-spinner {
    display: block;
}
@keyframes qrisSpin {
    to {
        transform: rotate(360deg);
    }
}

.qris-success-icon {
    display: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--online) 15%, transparent);
    color: var(--online);
    align-items: center;
    justify-content: center;
}
.qris-success-icon svg {
    width: 30px;
    height: 30px;
}
.qris-box.is-success .qris-success-icon {
    display: flex;
}
.qris-box.is-success .qris-code-wrap img,
.qris-box.is-success .qris-spinner {
    display: none;
}
.qris-box.is-success .qris-code-wrap {
    background: color-mix(in srgb, var(--online) 10%, transparent);
    border-color: var(--online);
}

.qris-timer {
    margin: 16px 0 0;
    font-size: 12.5px;
    color: var(--rgba3);
}
.qris-timer span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--text1);
}
.qris-box.is-success .qris-timer {
    display: none;
}

.qris-status {
    margin: 12px auto 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--rgba2);
    color: var(--rgba3);
}
.qris-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary2);
    animation: qrisPulse 1.4s ease-in-out infinite;
}
.qris-status--success {
    color: var(--online);
}
.qris-status--success .qris-status-dot {
    background: var(--online);
    animation: none;
}
.qris-status--expired {
    color: var(--primary1);
}
.qris-status--expired .qris-status-dot {
    background: var(--primary1);
    animation: none;
}
@keyframes qrisPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .35;
    }
}
@media (prefers-reduced-motion: reduce) {
    .qris-status-dot {
        animation: none;
    }
    .qris-spinner {
        animation-duration: 1.4s;
    }
}

.qris-actions {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.qris-box.is-success .qris-actions {
    display: none;
}

.qris-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color .15s, border-color .15s, filter .15s;
}
.qris-btn svg {
    width: 15px;
    height: 15px;
}
.qris-btn--outline {
    background: transparent;
    border-color: var(--rgba2);
    color: var(--text1);
}
.qris-btn--outline:hover {
    background: var(--rgba2);
}
.qris-btn--solid {
    background: var(--pv-btn-bg);
    color: var(--pv-btn-color);
    box-shadow: 0 10px 24px -8px var(--pv-btn-shadow);
}
.qris-btn--solid:hover {
    filter: brightness(1.1);
}

.qris-retry {
    display: none;
}
.qris-box.is-expired .qris-retry {
    display: inline-flex;
}
.qris-box.is-expired .qris-code-wrap,
.qris-box.is-expired .qris-actions .qris-btn--outline {
    opacity: .35;
    pointer-events: none;
}

.qris-hint {
    margin: 16px 0 0;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--rgba3);
}
.qris-box.is-success .qris-hint {
    display: none;
}

@media (min-width: 480px) {
    .qris-box {
        padding: 34px 30px 28px;
    }
    .qris-code-wrap {
        width: 236px;
        height: 236px;
    }
}

.xw-notif-panel {
    position: fixed;
    z-index: 9997;
    top: 70px;
    right: 12px;
    width: min(384px, calc(100vw - 24px));
    max-height: min(74vh, 560px);
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    color: var(--text1, #fff);
    background: color-mix(in srgb, var(--card, #1e1e1e) 97%, transparent);
    border: 1px solid var(--rgba2, rgba(255, 255, 255, 0.1));
    box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: inherit;
}
.xw-notif-panel[hidden] {
    display: none !important;
}
.xw-notif-panel.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.xw-notif-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 12px 12px 16px;
    border-bottom: 1px solid var(--rgba2, rgba(255, 255, 255, 0.08));
}
.xw-notif-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.xw-notif-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.xw-notif-count {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--primary1, #ef4444);
}
.xw-notif-count[hidden] {
    display: none;
}
.xw-notif-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.xw-notif-close {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    font-size: 12px;
    color: var(--rgba3, rgba(255, 255, 255, 0.72));
    background: transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.xw-notif-close:hover {
    color: var(--text1, #fff);
    background: var(--rgba2, rgba(255, 255, 255, 0.1));
}
.xw-notif-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 6px 8px 10px;
}
.xw-notif-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.xw-notif-group {
    padding: 10px 8px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: var(--rgba1, rgba(255, 255, 255, 0.45));
}
.xw-notif-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 12px 11px 14px;
    border-radius: 14px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: color-mix(in srgb, var(--xw-tone, #009bd7) 8%, transparent);
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.xw-notif-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--xw-tone, #009bd7);
}
a.xw-notif-item:hover {
    background: color-mix(in srgb, var(--xw-tone, #009bd7) 14%, transparent);
}
a.xw-notif-item:active {
    transform: scale(0.99);
}
.xw-notif-item.is-read {
    background: transparent;
    opacity: 0.68;
}
.xw-notif-item.is-read::before {
    opacity: 0.35;
}
.xw-notif-item.is-read:hover {
    background: var(--rgba1, rgba(255, 255, 255, 0.05));
}
.xw-notif-lead {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    overflow: hidden;
    font-size: 14px;
    color: var(--xw-tone, #009bd7);
    background: color-mix(in srgb, var(--xw-tone, #009bd7) 16%, transparent);
}
.xw-notif-lead.is-avatar {
    border-radius: 50%;
}
.xw-notif-lead img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.xw-notif-text {
    flex: 1;
    min-width: 0;
}
.xw-notif-label {
    display: inline-block;
    margin-bottom: 3px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--xw-tone, #009bd7);
}
.xw-notif-title-line {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.xw-notif-msg {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--rgba3, rgba(255, 255, 255, 0.72));
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.xw-notif-side {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding-top: 1px;
    font-size: 10.5px;
    white-space: nowrap;
    color: var(--rgba1, rgba(255, 255, 255, 0.5));
}
.xw-notif-unread {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--xw-tone, #009bd7);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--xw-tone, #009bd7) 22%, transparent);
}
.xw-notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 200px;
    padding: 20px;
    text-align: center;
    color: var(--rgba1, rgba(255, 255, 255, 0.5));
}
.xw-notif-empty i {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 4px;
    border-radius: 50%;
    font-size: 20px;
    color: var(--rgba3, rgba(255, 255, 255, 0.72));
    background: var(--rgba2, rgba(255, 255, 255, 0.08));
}
.xw-notif-empty strong {
    font-size: 13.5px;
    color: var(--text1, #fff);
}
.xw-notif-empty span {
    max-width: 240px;
    font-size: 12px;
    line-height: 1.5;
}
.xw-notif-skel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}
.xw-notif-skel-avatar,
.xw-notif-skel-line {
    background: linear-gradient(
        90deg,
        var(--rgba1, rgba(255, 255, 255, 0.05)) 25%,
        var(--rgba2, rgba(255, 255, 255, 0.1)) 37%,
        var(--rgba1, rgba(255, 255, 255, 0.05)) 63%
    );
    background-size: 400% 100%;
    animation: xwnShimmer 1.4s ease infinite;
}
.xw-notif-skel-avatar {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
}
.xw-notif-skel-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.xw-notif-skel-line {
    height: 10px;
    border-radius: 6px;
}
.xw-notif-skel-line.is-long {
    width: 78%;
}
.xw-notif-skel-line.is-short {
    width: 52%;
}
.xw-notif-guest {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 26px 20px 22px;
    text-align: center;
}
.xw-notif-guest-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 4px;
    border-radius: 50%;
    font-size: 22px;
    color: var(--primary2, #009bd7);
    background: var(--rgba2, rgba(255, 255, 255, 0.08));
    box-shadow: 0 0 0 8px var(--rgba1, rgba(255, 255, 255, 0.04));
}
.xw-notif-guest-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}
.xw-notif-guest-desc {
    margin: 0 0 6px;
    max-width: 270px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--rgba3, rgba(255, 255, 255, 0.72));
}
.xw-notif-guest-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 26px;
    border: 0;
    border-radius: 10px;
    font-family: "Poppins", sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 55%, #4f46e5 100%);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.xw-notif-guest-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.45);
}
.xw-notif-guest-btn:active {
    transform: translateY(0);
}
.xw-notif-guest-foot {
    font-size: 11px;
    line-height: 1.4;
    color: var(--rgba1, rgba(255, 255, 255, 0.5));
}
.xw-tone-info {
    --xw-tone: var(--primary2, #009bd7);
}
.xw-tone-success {
    --xw-tone: var(--online, #22c55e);
}
.xw-tone-warn {
    --xw-tone: #f59e0b;
}
.xw-tone-danger {
    --xw-tone: #ef4444;
}
.xw-tone-chat {
    --xw-tone: #10b981;
}
.xw-tone-level {
    --xw-tone: var(--level, #c79cff);
}
.xw-notif-toasts {
    position: fixed;
    right: 20px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
    z-index: 999998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    width: 360px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
    font-family: inherit;
}
.xw-notif-toast {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 38px 15px 14px;
    border-radius: 16px;
    overflow: hidden;
    color: var(--text1, #fff);
    background: color-mix(in srgb, var(--card, #1e1e1e) 95%, transparent);
    border: 1px solid var(--rgba2, rgba(255, 255, 255, 0.1));
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    animation: xwnCardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.xw-notif-toast::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--xw-tone, #009bd7);
}
.xw-notif-toast.has-action {
    cursor: pointer;
}
.xw-notif-toast.has-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px -14px rgba(0, 0, 0, 0.6);
}
.xw-notif-toast.is-out {
    pointer-events: none;
    animation: xwnCardOut 0.26s ease forwards;
}
.xw-notif-toast-body {
    flex: 1;
    min-width: 0;
}
.xw-notif-toast-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}
.xw-notif-toast-msg {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--rgba3, rgba(255, 255, 255, 0.72));
}
.xw-notif-toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    font-size: 12px;
    color: var(--rgba1, rgba(255, 255, 255, 0.5));
    background: transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.xw-notif-toast-close:hover {
    color: var(--text1, #fff);
    background: var(--rgba2, rgba(255, 255, 255, 0.1));
}
.xw-notif-life {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--xw-tone, #009bd7);
    transform-origin: left center;
    animation: xwnLife var(--xw-life, 6000ms) linear forwards;
}
.xw-notif-toast:hover .xw-notif-life,
.xw-notif-pill:hover .xw-notif-life,
.xw-notif-badge-card:hover .xw-notif-life {
    animation-play-state: paused;
}
.xw-notif-top {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: calc(100vw - 28px);
    pointer-events: none;
    font-family: inherit;
}
.xw-notif-pill {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 20px 12px 10px;
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
    color: var(--text1, #fff);
    background: color-mix(in srgb, var(--card, #1e1e1e) 92%, transparent);
    border: 1px solid var(--rgba2, rgba(255, 255, 255, 0.1));
    box-shadow: 0 16px 36px -14px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    animation: xwnPillIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.xw-notif-pill.is-out {
    pointer-events: none;
    animation: xwnPillOut 0.3s ease forwards;
}
.xw-notif-pill .xw-notif-life {
    background: var(--level, #c79cff);
}
.xw-notif-pill-ico {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 14px;
    color: #2b1747;
    background: var(--level-gradient, linear-gradient(90deg, #ead4ff, #c28cff));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--level, #c79cff) 22%, transparent);
}
.xw-notif-pill-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.xw-notif-pill-text strong {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}
.xw-notif-pill-text span {
    font-size: 11.5px;
    line-height: 1.3;
    color: var(--rgba3, rgba(255, 255, 255, 0.72));
}
.xw-notif-badge {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: pointer;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: xwnFade 0.3s ease backwards;
}
.xw-notif-badge.is-out {
    pointer-events: none;
    animation: xwnFadeOut 0.3s ease forwards;
}
.xw-notif-badge-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: min(320px, 100%);
    padding: 28px 24px 30px;
    border-radius: 24px;
    overflow: hidden;
    text-align: center;
    color: var(--text1, #fff);
    background: color-mix(in srgb, var(--card, #1e1e1e) 96%, transparent);
    border: 1px solid var(--rgba2, rgba(255, 255, 255, 0.1));
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
    animation: xwnBadgeIn 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) backwards;
}
.xw-notif-badge-card .xw-notif-life {
    height: 3px;
    background: var(--level-gradient, linear-gradient(90deg, #ead4ff, #c28cff));
}
.xw-notif-badge-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    margin-bottom: 8px;
    font-size: 44px;
    color: var(--level, #c79cff);
}
.xw-notif-badge-stage img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: xwnFloat 3s ease-in-out infinite;
}
.xw-notif-badge-glow {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--level, #c79cff) 55%, transparent) 0%, transparent 68%);
    animation: xwnGlow 2.4s ease-in-out infinite;
}
.xw-notif-badge-eyebrow {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--level, #c79cff);
}
.xw-notif-badge-name {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}
.xw-notif-badge-sub {
    max-width: 240px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--rgba3, rgba(255, 255, 255, 0.72));
}
.nav .nav_b .nav_bell #bell_num.is-bump {
    animation: xwnBump 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes xwnBump {
    0% { transform: translateY(-3px) translateX(5px) scale(0.6); }
    60% { transform: translateY(-3px) translateX(5px) scale(1.25); }
    100% { transform: translateY(-3px) translateX(5px) scale(1); }
}
@keyframes xwnLife {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}
@keyframes xwnCardIn {
    from { opacity: 0; transform: translateY(18px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes xwnCardOut {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(24px) scale(0.96); }
}
@keyframes xwnPillIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes xwnPillOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-14px) scale(0.94); }
}
@keyframes xwnFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes xwnFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
@keyframes xwnBadgeIn {
    from { opacity: 0; transform: translateY(24px) scale(0.86); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes xwnFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes xwnGlow {
    0%, 100% { opacity: 0.7; transform: scale(0.94); }
    50% { opacity: 1; transform: scale(1.06); }
}
@keyframes xwnShimmer {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}
.xw-notif-tabs {
    display: flex;
    gap: 4px;
    padding: 6px 10px 0;
    border-bottom: 1px solid var(--rgba2, rgba(255, 255, 255, 0.08));
}
.xw-notif-tabs[hidden] {
    display: none !important;
}
.xw-notif-tab {
    --xw-tab-tone: var(--primary2, #009bd7);
    position: relative;
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px 10px 0 0;
    background: transparent;
    color: var(--rgba1, rgba(255, 255, 255, 0.5));
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.xw-notif-tab[data-tab="hukuman"] {
    --xw-tab-tone: #ef4444;
}
.xw-notif-tab i {
    font-size: 13px;
}
.xw-notif-tab:hover {
    color: var(--text1, #fff);
    background: color-mix(in srgb, var(--text1, #fff) 6%, transparent);
}
.xw-notif-tab.is-active {
    color: var(--text1, #fff);
}
.xw-notif-tab:focus-visible {
    outline: 2px solid var(--xw-tab-tone);
    outline-offset: -2px;
}
.xw-notif-tab::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -1px;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--xw-tab-tone);
    transform: scaleX(0);
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.xw-notif-tab.is-active::after {
    transform: scaleX(1);
}
.xw-notif-tab-count {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: var(--xw-tab-tone);
}
.xw-notif-tab-count[hidden] {
    display: none !important;
}
.xw-notif-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 46px;
    padding: 7px 10px;
    border-bottom: 1px solid var(--rgba2, rgba(255, 255, 255, 0.08));
}
.xw-notif-bar[hidden] {
    display: none !important;
}
.xw-notif-bar-info {
    margin-left: auto;
    padding-left: 6px;
    font-size: 11px;
    white-space: nowrap;
    color: var(--rgba1, rgba(255, 255, 255, 0.5));
}
.xw-notif-bar-count {
    margin-left: auto;
    padding-left: 6px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--rgba3, rgba(255, 255, 255, 0.72));
}
.xw-notif-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid var(--rgba2, rgba(255, 255, 255, 0.1));
    border-radius: 9px;
    background: transparent;
    color: var(--text1, #fff);
    font: inherit;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease, transform 0.12s ease;
}
.xw-notif-btn:hover:not(:disabled) {
    background: color-mix(in srgb, var(--text1, #fff) 8%, transparent);
}
.xw-notif-btn:active:not(:disabled) {
    transform: scale(0.97);
}
.xw-notif-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}
.xw-notif-btn:focus-visible {
    outline: 2px solid var(--primary2, #009bd7);
    outline-offset: 2px;
}
.xw-notif-btn.is-ghost {
    border-color: transparent;
    color: var(--rgba3, rgba(255, 255, 255, 0.72));
}
.xw-notif-btn.is-danger {
    color: #fff;
    border-color: #ef4444;
    background: #ef4444;
}
.xw-notif-btn.is-danger:hover:not(:disabled) {
    background: #dc2626;
    border-color: #dc2626;
}
.xw-notif-box {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border: 1.5px solid color-mix(in srgb, var(--text1, #fff) 45%, transparent);
    border-radius: 5px;
    font-size: 9px;
    color: transparent;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.xw-notif-btn[aria-pressed="true"] .xw-notif-box,
.xw-notif-btn.is-partial .xw-notif-box {
    color: #fff;
    border-color: var(--primary2, #009bd7);
    background: var(--primary2, #009bd7);
}
.xw-notif-item {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.xw-notif-item:hover {
    background: color-mix(in srgb, var(--xw-tone, #009bd7) 14%, transparent);
}
.xw-notif-item.is-read:hover {
    background: color-mix(in srgb, var(--text1, #fff) 7%, transparent);
}
.xw-notif-item:active {
    transform: scale(0.995);
}
.xw-notif-item:focus-visible {
    outline: 2px solid var(--xw-tone, #009bd7);
    outline-offset: -2px;
}
.xw-notif-text:focus-visible {
    outline: 2px solid var(--xw-tone, #009bd7);
    outline-offset: 3px;
    border-radius: 6px;
}
.xw-notif-item.is-open {
    opacity: 1;
    background: color-mix(in srgb, var(--xw-tone, #009bd7) 11%, transparent);
}
.xw-notif-item.is-open .xw-notif-title-line {
    white-space: normal;
    overflow: visible;
}
.xw-notif-item.is-open .xw-notif-msg {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}
.xw-notif-item.is-selected {
    opacity: 1;
    background: color-mix(in srgb, var(--primary2, #009bd7) 15%, transparent);
}
.xw-notif-item.is-open:hover {
    background: color-mix(in srgb, var(--xw-tone, #009bd7) 14%, transparent);
}
.xw-notif-item.is-selected:hover {
    background: color-mix(in srgb, var(--primary2, #009bd7) 20%, transparent);
}
.xw-notif-item.is-removing {
    pointer-events: none;
    animation: xwnItemOut 0.2s ease both;
}
.xw-notif-check {
    flex: 0 0 auto;
    align-self: center;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-left: -2px;
    border: 2px solid color-mix(in srgb, var(--text1, #fff) 42%, transparent);
    border-radius: 50%;
    font-size: 10px;
    color: transparent;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.xw-notif-item.is-selected .xw-notif-check {
    color: #fff;
    border-color: var(--primary2, #009bd7);
    background: var(--primary2, #009bd7);
}
.xw-notif-chev {
    font-size: 10px;
    transition: transform 0.22s ease;
}
.xw-notif-item.is-open .xw-notif-chev {
    transform: rotate(180deg);
}
.xw-notif-item {
    flex-wrap: wrap;
}
.xw-notif-detail {
    flex: 0 0 calc(100% - 50px);
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0 0 0 50px;
    padding-top: 10px;
    border-top: 1px dashed var(--rgba2, rgba(255, 255, 255, 0.12));
    animation: xwnFade 0.2s ease both;
}
.xw-notif-stamp {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    font-size: 10.5px;
    line-height: 1.4;
    color: var(--rgba1, rgba(255, 255, 255, 0.5));
}
.xw-notif-stamp span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.xw-notif-open {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 30px;
    padding: 0 13px;
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: var(--xw-tone, #009bd7);
    transition: filter 0.18s ease, transform 0.12s ease;
}
.xw-notif-open:hover {
    filter: brightness(1.08);
}
.xw-notif-open:active {
    transform: scale(0.97);
}
.xw-notif-more {
    padding: 8px 8px 4px;
    text-align: center;
    font-size: 11px;
    color: var(--rgba1, rgba(255, 255, 255, 0.5));
}
.xw-notif-confirm {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 10px 12px;
    border-top: 1px solid color-mix(in srgb, #ef4444 35%, transparent);
    background: color-mix(in srgb, #ef4444 9%, var(--card, #1e1e1e));
    animation: xwnConfirmIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.xw-notif-confirm[hidden] {
    display: none !important;
}
.xw-notif-confirm-text {
    flex: 1 1 170px;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--rgba3, rgba(255, 255, 255, 0.72));
}
.xw-notif-confirm-text strong {
    display: block;
    font-size: 12.5px;
    color: var(--text1, #fff);
}
.xw-notif-confirm-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
}
.xw-notif-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@keyframes xwnItemOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(18px); }
}
@keyframes xwnConfirmIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
    .xw-notif-toasts {
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        align-items: stretch;
    }
    .xw-notif-bar-info {
        display: none;
    }
    .xw-notif-btn {
        height: 34px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .xw-notif-panel,
    .xw-notif-toast,
    .xw-notif-pill,
    .xw-notif-badge,
    .xw-notif-badge-card,
    .xw-notif-badge-stage img,
    .xw-notif-badge-glow,
    .xw-notif-skel-avatar,
    .xw-notif-skel-line,
    .xw-notif-item,
    .xw-notif-detail,
    .xw-notif-confirm,
    .xw-notif-tab::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
