html,
body,
#app {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    font-size: .9rem;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

html { font-size: 90% !important; }
@media (max-width: 375px) { html { font-size: 80% !important; } }
@media (max-width: 320px) { html { font-size: 75% !important; } }

html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background: #dbeafe; }
html::-webkit-scrollbar-thumb { background: #8bb7ea; border-radius: 999px; }

:root {
    --kbz-blue-dark: #04408f;
    --kbz-blue: #0e63d7;
    --kbz-blue-mid: #1d7df2;
    --kbz-blue-light: #59a7ff;
    --kbz-cyan: #c8ebff;
    --kbz-teal: #11b7aa;
    --kbz-gradient: linear-gradient(180deg, #2d92ff 0%, #0b57bb 58%, #084089 100%);
    --kbz-gradient-h: linear-gradient(135deg, #42a5ff 0%, #0f68d8 55%, #08408c 100%);
    --kbz-surface-gradient: linear-gradient(180deg, #f8fcff 0%, #eaf4ff 100%);
    --kbz-accent: #ffd45c;
    --kbz-gold: #ffbf2f;
    --kbz-bg: #eaf4ff;
    --kbz-bg-soft: #f7fbff;
    --kbz-card: rgba(255, 255, 255, 0.94);
    --kbz-text: #12314d;
    --kbz-text-light: #5d7690;
    --kbz-border: rgba(14, 99, 215, 0.12);
    --kbz-success: #2fb66d;
    --kbz-danger: #f15c4e;
    --kbz-shadow: 0 16px 40px rgba(11, 76, 156, 0.14);
    --kbz-shadow-sm: 0 8px 24px rgba(11, 76, 156, 0.09);
}

body.kpay-theme {
    background:
        radial-gradient(circle at top left, rgba(89, 167, 255, 0.35), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 212, 92, 0.14), transparent 24%),
        linear-gradient(180deg, #d9ecff 0%, #eff7ff 46%, #f8fbff 100%);
    color: var(--kbz-text);
}

#app {
    background: transparent;
    max-width: 450px;
    overflow-x: hidden;
    margin: 0 auto;
    height: 100dvh;
    position: relative;
}

#app::before {
    content: "";
    position: fixed;
    inset: 0;
    max-width: 450px;
    margin: 0 auto;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 8%, rgba(255, 255, 255, 0.85), transparent 16%),
        radial-gradient(circle at 85% 14%, rgba(114, 193, 255, 0.32), transparent 18%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 24%);
    z-index: 0;
}

a { cursor: pointer; }

.app_wrapper {
    width: 100%;
    display: flex;
    flex-flow: column;
    margin: 0 auto;
    background: transparent;
    color: var(--kbz-text);
    height: 100%;
    position: relative;
    z-index: 1;
}

.app_wrapper ::-webkit-scrollbar { width: 2px; }
.app_wrapper ::-webkit-scrollbar-track,
.app_wrapper ::-webkit-scrollbar-thumb,
.app_wrapper ::-webkit-scrollbar-corner { background: transparent; }

.hidden { display: none !important; }

.app_header {
    width: 100%;
    position: sticky;
    top: 0;
    background: var(--kbz-gradient);
    z-index: 12;
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
    box-shadow: 0 10px 24px rgba(4, 64, 143, 0.14);
}

.topbar {
    min-height: 4.35rem;
    position: relative;
}

.topbar::after {
    content: "";
    position: absolute;
    left: 1rem;
    top: .7rem;
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    filter: blur(2px);
    pointer-events: none;
}

.brand-mark,
.modal_brand_mark {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd969, #ffbf2f);
    color: #0b57bb;
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.brand-copy,
.modal_brand_copy {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.brand-title,
.modal_brand_title {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.brand-subtitle,
.modal_brand_subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: .68rem;
    font-weight: 600;
}

.app_body {
    position: relative !important;
    width: 100% !important;
    height: 100%;
    z-index: 10;
    overflow-y: auto;
    flex: 1;
}

.app_footer {
    width: calc(100% - 1.5rem);
    position: fixed;
    max-width: calc(450px - 1.5rem);
    left: 0;
    right: 0;
    bottom: .75rem;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 1.4rem;
    box-shadow: 0 18px 34px rgba(9, 59, 122, 0.16);
    z-index: 10;
    min-height: 68px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
}

.btn {
    padding: .5rem 1rem;
    cursor: pointer;
    border-radius: 999px;
    text-align: center;
    align-items: center;
    display: flex;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
    transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
    border: none;
}

.btn:hover { filter: brightness(1.03); }
.btn:active { transform: scale(0.97); }

.btn.btn-register {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.72);
    color: var(--kbz-blue);
    box-shadow: 0 10px 20px rgba(7, 62, 138, 0.12);
}

.btn.btn-login {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: #fff;
}

a.btn_text {
    display: flex;
    flex-wrap: nowrap;
    min-width: 4rem;
    font-size: .85rem;
    text-align: center;
    align-items: center;
    margin: 0 auto;
    justify-content: center;
    font-weight: 700;
}

section { padding-bottom: 86px; }

.section_title {
    background: transparent;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.user-info {
    display: flex;
    max-width: 100%;
    gap: .5rem;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.user-balance {
    display: flex;
    flex-flow: column;
    justify-content: flex-end;
    width: 100%;
    text-align: end;
    font-size: 1rem;
    color: white;
}

.user-wrap {
    display: flex;
    text-align: center;
    width: auto;
    justify-content: flex-end;
    gap: .25rem;
    align-items: center;
}

span.balance {
    color: #fff4ae;
    font-size: 1.05rem;
    font-weight: 800;
    display: inline-flex;
    background: none;
    -webkit-text-fill-color: #fff4ae;
}

.balance_show {
    display: flex;
    gap: .25rem;
    align-items: center;
    width: 100%;
    justify-content: flex-end;
}

.icon_balance { width: 1rem; height: 1rem; }

.notice {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: calc(100% - 1rem);
    height: 2.45rem;
    margin: 0 auto .7rem;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.notice_text {
    padding: 0 0 0 .8rem;
    display: flex;
    flex: 1;
    overflow: hidden;
    font-size: .78rem;
    color: #fff;
    width: 100%;
    line-height: 1.75;
}

/* Notice outside header (on white body) */
.app_body .notice {
    background: linear-gradient(135deg, rgba(14,99,215,0.06), rgba(89,167,255,0.12));
    border: 1px solid rgba(14,99,215,0.1);
}

.app_body .notice .notice_text,
.app_body .notice .notice_text .scrolling-text-item {
    color: #1a1a2e !important;
}

.app_body .notice .fa-bullhorn {
    color: #f59e0b !important;
}

.notice_bg { display: flex; align-items: center; width: 100%; }

.scrolling-text-container { width: 100%; overflow: hidden; white-space: nowrap; }
.scrolling-text-item { display: inline-block; padding-left: 100%; animation: scroll-left 15s linear infinite; }

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.tab.active { transition: .3s ease-in-out; animation: slowShow .3s; flex: 1; }
@keyframes slowShow { 0% { opacity: 0; } 100% { opacity: 1; } }

input:focus,
input:focus-visible { outline: none !important; box-shadow: none !important; }

.error-text { color: var(--kbz-danger); }

span.swiper-pagination-bullet.swiper-pagination-bullet-active {
    background-color: #fff;
    opacity: 1;
    width: 1.5rem;
    height: .35rem;
    border-radius: 8px;
}

.swiper-pagination-bullet { background-color: #fff; opacity: .5; }

.homepageSwiper {
    width: calc(100% - 1.5rem);
    height: 152px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--kbz-shadow);
}

.banner-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    isolation: isolate;
}

.banner-slide::before,
.banner-slide::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    z-index: -1;
}

.banner-slide::before {
    width: 7rem;
    height: 7rem;
    top: -1.2rem;
    right: -1rem;
}

.banner-slide::after {
    width: 5rem;
    height: 5rem;
    bottom: -1rem;
    left: -1rem;
}

.banner-slide--gold { background: linear-gradient(135deg, #f6b61d 0%, #ff7b31 100%); }
.banner-slide--blue { background: linear-gradient(135deg, #1ca4ff 0%, #0d63d3 52%, #07408c 100%); }
.banner-slide--cyan { background: linear-gradient(135deg, #3bd0ff 0%, #0f7df3 56%, #0a4aa6 100%); }

.banner-subtitle {
    color: rgba(255, 255, 255, 0.84);
    font-size: .85rem;
    font-weight: 500;
}

.section-block-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.section-block-heading h3 {
    margin: .15rem 0 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--kbz-text);
    letter-spacing: -.02em;
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .63rem;
    font-weight: 800;
    color: var(--kbz-blue);
}

.section-heading-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: rgba(14, 99, 215, 0.08);
    color: var(--kbz-blue);
    font-size: .73rem;
    font-weight: 700;
    white-space: nowrap;
}

.section-heading-chip--gold {
    background: rgba(255, 191, 47, 0.16);
    color: #af7600;
}

.winners-shell {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--kbz-shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
}

.section_custom_bg {
    position: fixed;
    width: 100%;
    height: 100dvh;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    max-width: 450px;
    margin: 0 auto;
    background:
        radial-gradient(circle at top right, rgba(89, 167, 255, 0.22), transparent 28%),
        linear-gradient(180deg, #edf6ff 0%, #f8fbff 100%);
}

.cashier-body,
.promo-body,
.member-body {
    background: transparent;
}
