/* ==========================================================================
   Sweet and Young member app
   Brand layer over the Enabled mobile template, plus the desktop phone frame.
   Colours, headings and buttons follow the public site (www.sweetandyoung.com).
   Loaded last by components/front/layouts/master.blade.php.
   ========================================================================== */

/* 0. Heading font (same self-hosted Montserrat as the public site) ---------- */

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url(../fonts/montserrat-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url(../fonts/montserrat-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 1. Tokens (values from the public site's stylesheet) ---------------------- */

:root {
    --sy-primary: #7532a8;
    --sy-primary-700: #5b2385;
    --sy-primary-900: #2a1040;
    --sy-primary-100: #ece1f6;
    --sy-sky: #b7cde8;
    --sy-sky-100: #dde8f5;
    --sy-blue: #2f5ea8;
    --sy-sun: #f7d917;
    --sy-sun-soft: #fdf6c7;
    --sy-sun-ink: #5c4a00;
    --sy-green: #17744c;
    --sy-green-soft: #e1f2e9;
    --sy-ink: #1e1a2d;
    --sy-muted: #676379;
    --sy-line: #e6e2ef;
    --sy-ground: #f2f6fc;
    --sy-surface: #ffffff;
    --sy-accent-text: #7532a8;
    --sy-font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
    --sy-radius: 16px;
    --sy-shadow-sm: 0 1px 2px rgba(30, 26, 45, 0.06), 0 4px 14px -6px rgba(30, 26, 45, 0.12);
    --sy-shadow: 0 16px 40px -18px rgba(42, 16, 64, 0.32);
    --sy-hero: radial-gradient(circle at 92% -10%, rgba(183, 205, 232, 0.4) 0%, rgba(183, 205, 232, 0) 55%),
               linear-gradient(120deg, #2a1040 0%, #5b2385 45%, #7532a8 75%, #4a78c0 120%);
    --sy-hero-blue: radial-gradient(circle at 92% -10%, rgba(183, 205, 232, 0.4) 0%, rgba(183, 205, 232, 0) 55%),
                    linear-gradient(120deg, #152547 0%, #22467f 45%, #2f5ea8 75%, #6b9bd6 120%);
    --sy-on-hero-soft: #dde8f5;
    --sy-screen-h: 100vh;
}

.theme-dark {
    --sy-primary-100: #33204a;
    --sy-sky-100: #1c2a42;
    --sy-sun-soft: #37320f;
    --sy-sun-ink: #f3e37a;
    --sy-green-soft: #143024;
    --sy-ink: #f1edf8;
    --sy-muted: #a6a1b8;
    --sy-line: #2f2940;
    --sy-ground: #120f19;
    --sy-surface: #1c1726;
    --sy-accent-text: #c9a3f0;
    --sy-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 14px -6px rgba(0, 0, 0, 0.6);
    --sy-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.7);
}

/* 2. Desktop phone frame ----------------------------------------------------
   Wider screens render the app inside a fixed-size device. The device has a
   transform, so the template's position:fixed bars and menus stay inside it,
   and #page becomes the scroll area. Phones are untouched; print is untouched. */

.sy-stage-brand {
    display: none;
}

@media screen and (min-width: 768px) {
    html,
    body {
        height: 100%;
        overflow: hidden;
    }

    body {
        background: #2a1040;
    }

    .sy-stage {
        position: fixed;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background:
            radial-gradient(40vmax 40vmax at 8% 10%, rgba(183, 205, 232, 0.2), rgba(183, 205, 232, 0) 70%),
            radial-gradient(44vmax 44vmax at 94% 92%, rgba(74, 120, 192, 0.42), rgba(74, 120, 192, 0) 70%),
            radial-gradient(26vmax 26vmax at 86% 10%, rgba(247, 217, 23, 0.1), rgba(247, 217, 23, 0) 70%),
            linear-gradient(150deg, #3a1760 0%, #2a1040 50%, #170a26 100%);
    }

    .sy-device {
        --sy-screen-h: 100vh;
        position: relative;
        flex: 0 0 auto;
        width: 430px;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
        transform: translateZ(0);
        background: var(--sy-ground);
        box-shadow: 0 0 80px rgba(0, 0, 0, 0.45);
    }

    .sy-device > #page {
        height: 100%;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(117, 50, 168, 0.3) transparent;
        background: linear-gradient(180deg, #dde8f5 0%, rgba(242, 246, 252, 0) 100%) 0 0 / 100% 320px no-repeat local, var(--sy-ground);
    }

    .theme-dark .sy-device > #page {
        background: var(--sy-ground);
    }

    .sy-device > #page::-webkit-scrollbar {
        width: 5px;
    }

    .sy-device > #page::-webkit-scrollbar-thumb {
        background: rgba(117, 50, 168, 0.3);
        border-radius: 5px;
    }

    /* Bootstrap appends the modal backdrop to <body>, outside the device; the modal dims itself instead. */
    body > .modal-backdrop {
        display: none;
    }

    .sy-device .modal.show {
        background-color: rgba(42, 16, 64, 0.55);
    }

    /* Window scroll never fires inside the device, so scroll-revealed headers stay visible. */
    .sy-device .header-auto-show {
        opacity: 1;
        pointer-events: all;
    }

    .sy-device .card[data-card-height="cover"] {
        height: var(--sy-screen-h) !important;
    }

    .sy-device .auth-shell {
        min-height: var(--sy-screen-h);
    }

    /* Bootstrap's sm/md/lg/xl columns follow the browser window, not the device, so a "desktop" column
       (e.g. col-md-7) would shrink inside the frame. Reset them to the phone layout: full width unless
       the element also carries a plain col-N. */
    .sy-device [class*="col-sm"],
    .sy-device [class*="col-md"],
    .sy-device [class*="col-lg"],
    .sy-device [class*="col-xl"],
    .sy-device [class*="col-xxl"] {
        flex: 0 0 auto;
        width: 100%;
        margin-left: 0;
    }

    .sy-device .col { flex: 1 0 0%; width: auto; }
    .sy-device .col-auto { width: auto; }
    .sy-device .col-1 { width: 8.33333333%; }
    .sy-device .col-2 { width: 16.66666667%; }
    .sy-device .col-3 { width: 25%; }
    .sy-device .col-4 { width: 33.33333333%; }
    .sy-device .col-5 { width: 41.66666667%; }
    .sy-device .col-6 { width: 50%; }
    .sy-device .col-7 { width: 58.33333333%; }
    .sy-device .col-8 { width: 66.66666667%; }
    .sy-device .col-9 { width: 75%; }
    .sy-device .col-10 { width: 83.33333333%; }
    .sy-device .col-11 { width: 91.66666667%; }
    .sy-device .col-12 { width: 100%; }
}

/* A real phone frame on desktops (mouse, tall enough window). */
@media screen and (min-width: 768px) and (min-height: 600px) and (hover: hover) and (pointer: fine) {
    .sy-device {
        --sy-bezel: 11px;
        --sy-screen-h: min(844px, calc(100vh - 56px));
        width: 390px;
        height: var(--sy-screen-h);
        border-radius: 46px;
        box-shadow:
            0 0 0 var(--sy-bezel) #0e0818,
            0 0 0 calc(var(--sy-bezel) + 1px) rgba(255, 255, 255, 0.16),
            0 60px 120px -30px rgba(0, 0, 0, 0.75);
    }
}

@media screen and (min-width: 1000px) and (min-height: 600px) and (hover: hover) and (pointer: fine) {
    .sy-stage-brand {
        position: absolute;
        top: 50%;
        left: calc((100vw - 390px) / 4);
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        text-align: center;
        pointer-events: none;
        user-select: none;
    }

    .sy-stage-brand img {
        width: 180px;
        height: auto;
        margin-bottom: 6px;
        filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
    }

    .sy-stage-brand .sy-stage-name {
        margin: 0;
        padding: 0;
        color: #fff;
        font-family: var(--sy-font-head);
        font-size: 30px;
        font-weight: 800;
        letter-spacing: -0.01em;
        line-height: 1.1;
        text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    }

    .sy-stage-brand .sy-stage-note {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 8px 16px;
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.14);
        color: #fff;
        font-family: var(--sy-font-head);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .sy-stage-brand .sy-stage-note i {
        color: var(--sy-sun);
    }
}

/* 3. App ground (also fixes the repeating background band on short pages) --- */

body.theme-light {
    background: linear-gradient(180deg, #dde8f5 0%, rgba(242, 246, 252, 0) 100%) 0 0 / 100% 320px no-repeat, var(--sy-ground);
}

body.theme-dark {
    background: var(--sy-ground);
}

.page-content {
    padding-bottom: calc(100px + (env(safe-area-inset-bottom)) * 1.1);
}

/* 4. Header bar -------------------------------------------------------------- */

.theme-light .header-bar {
    background-color: rgba(255, 255, 255, 0.92);
}

.theme-dark .header-bar {
    background-color: rgba(28, 23, 38, 0.92);
}

.header-bar-detached {
    border: 1px solid rgba(230, 226, 239, 0.8);
    border-radius: 18px;
    box-shadow: 0 10px 30px -20px rgba(42, 16, 64, 0.45) !important;
}

.theme-dark .header-bar-detached {
    border-color: var(--sy-line);
}

.header-bar .header-title {
    font-family: var(--sy-font-head) !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.theme-light .header-bar .header-title {
    color: var(--sy-ink) !important;
}

.theme-light .header-bar a:not(.header-title) i,
.theme-light .header-bar a:not(.header-title) i.color-theme {
    color: var(--sy-primary) !important;
}

.header-bar a:not(.header-title) .bi-list {
    font-size: 22px;
}

/* 5. Bottom tab bar (active tab styled like the site's current nav item) --- */

#footer-bar.footer-bar-detached {
    border: 1px solid rgba(230, 226, 239, 0.8);
    border-radius: 22px;
    box-shadow: 0 14px 34px -18px rgba(42, 16, 64, 0.5) !important;
}

.theme-dark #footer-bar.footer-bar-detached {
    border-color: var(--sy-line);
}

.theme-light #footer-bar {
    background-color: rgba(255, 255, 255, 0.95);
}

.theme-dark #footer-bar {
    background-color: rgba(28, 23, 38, 0.95);
}

#footer-bar a:not(.btn) {
    padding-top: 9px;
    color: var(--sy-muted) !important;
}

#footer-bar a:not(.btn) i {
    color: var(--sy-muted) !important;
}

#footer-bar a:not(.btn) span {
    margin-top: 2px;
    opacity: 1;
    color: var(--sy-muted) !important;
    font-family: var(--sy-font-head) !important;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

#footer-bar .active-nav i {
    position: relative !important;
    left: auto;
    width: 54px;
    height: 28px;
    margin: 0 auto;
    border-radius: 14px;
    background-image: none !important;
    background-color: var(--sy-primary-100);
    color: var(--sy-primary-700) !important;
    line-height: 28px;
    transform: none;
}

.theme-dark #footer-bar .active-nav i {
    color: var(--sy-accent-text) !important;
}

#footer-bar .active-nav i::after {
    display: none;
}

#footer-bar .active-nav span {
    padding-top: 0;
    color: var(--sy-accent-text) !important;
}

/* 6. Template accent colours -> brand --------------------------------------
   The template's highlight, blue, teal and mint families were all repointed
   to lilac #DFB3E8 as the old accent. They become the site's violet. */

body {
    --boss-heading-highlight: var(--sy-accent-text);
    --boss-color3: var(--sy-accent-text);
}

.color-highlight,
.color-highlight-light,
.color-highlight-dark,
.color-blue-light,
.color-blue-dark,
.color-teal-light,
.color-teal-dark,
.color-mint-light,
.color-mint-dark,
.wallet_redirect .left_wallet span,
.gold,
.topup_sub_reminder {
    color: var(--sy-accent-text) !important;
}

.bg-highlight,
.bg-highlight-dark,
.bg-blue-dark,
.bg-teal-dark,
.bg-mint-dark {
    background-color: var(--sy-primary) !important;
    color: #fff !important;
}

.bg-highlight-light,
.bg-blue-light,
.bg-teal-light,
.bg-mint-light {
    background-color: #8d4fc0 !important;
    color: #fff !important;
}

.border-highlight,
.border-highlight-light,
.border-highlight-dark,
.border-blue-light,
.border-blue-dark,
.border-teal-light,
.border-teal-dark,
.border-mint-light,
.border-mint-dark,
.focus-highlight:focus,
.focus-blue:focus,
.focus-teal:focus,
.focus-mint:focus {
    border-color: var(--sy-primary) !important;
}

.color-icon-highlight,
.color-icon-blue,
.color-icon-teal,
.color-icon-mint {
    stroke: var(--sy-primary) !important;
}

.list-group .active {
    background-color: var(--sy-primary) !important;
    border-color: var(--sy-primary) !important;
}

.list-group .badge {
    background-color: var(--sy-primary);
}

.tabs-box a[aria-expanded=true],
.tabs-pill a[aria-expanded=true],
.tabs-links a[aria-expanded=true] {
    background-color: var(--sy-primary);
    border-color: var(--sy-primary);
}

.tabs-icons a[aria-expanded=true],
.tabs-borders a[aria-expanded=true],
.tabs-cards .tab-controls a[aria-expanded=true] {
    color: var(--sy-accent-text) !important;
}

.tabs-borders a[aria-expanded=true] {
    border-color: var(--sy-primary) !important;
}

.ios-input:checked ~ .custom-control-label::before,
.switch-blue .ios-input:checked ~ .custom-control-label::before,
.switch-blue .android-input:checked ~ .custom-control-label::after,
.splide__pagination__page.is-active {
    background-color: var(--sy-primary) !important;
}

input[type=range]::-webkit-slider-thumb {
    background-color: var(--sy-primary);
}

.gradient-highlight,
.gradient-mint,
.gradient-teal {
    background-image: none !important;
    background-color: var(--sy-primary) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.gradient-blue {
    background-image: none !important;
    background-color: var(--sy-blue) !important;
    border-color: transparent !important;
    color: #fff !important;
}

/* Buttons: the site's pill buttons (Montserrat, sentence case, lift on hover). */
.btn.gradient-highlight,
.btn.gradient-mint,
.btn.gradient-teal,
.btn.gradient-blue,
.btn.bg-blue-dark {
    border: 0;
    border-radius: 999px !important;
    font-family: var(--sy-font-head);
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    text-transform: none !important;
    transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.2s, background-color 0.2s;
}

.btn.gradient-highlight:hover,
.btn.gradient-mint:hover,
.btn.gradient-teal:hover,
.btn.bg-blue-dark:hover {
    background-color: var(--sy-primary-700) !important;
    box-shadow: var(--sy-shadow);
    color: #fff !important;
    transform: translateY(-2px);
}

.btn.gradient-blue:hover {
    background-color: #264d8c !important;
    box-shadow: var(--sy-shadow);
    color: #fff !important;
    transform: translateY(-2px);
}

.shadow-bg.gradient-highlight::after,
.shadow-bg.gradient-mint::after,
.shadow-bg.gradient-teal::after,
.shadow-bg.gradient-blue::after {
    opacity: 0.35;
}

.page-content .btn-primary {
    background-color: var(--sy-primary);
    border-color: var(--sy-primary);
}

.page-content .btn-primary:hover,
.page-content .btn-primary:focus {
    background-color: var(--sy-primary-700);
    border-color: var(--sy-primary-700);
}

/* 7. Cards, forms, lists ---------------------------------------------------- */

.card-style {
    border: 1px solid var(--sy-line);
    border-radius: 18px;
    box-shadow: var(--sy-shadow-sm);
}

.form-check-input:checked {
    background-color: var(--sy-primary);
    border-color: var(--sy-primary);
}

.form-check-input:focus,
.form-control:focus,
.form-select:focus {
    border-color: rgba(117, 50, 168, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(117, 50, 168, 0.12);
}

.page-content input[type="radio"],
.page-content input[type="checkbox"] {
    accent-color: var(--sy-primary);
}

.page-content input[type="file"]::file-selector-button {
    margin-right: 0.75rem;
    padding: 0.45rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--sy-primary);
    color: #fff;
    font-family: var(--sy-font-head);
    font-weight: 700;
    cursor: pointer;
}

/* Same button for Safari before 14.1 (kept as its own rule: an unknown selector voids a whole list). */
.page-content input[type="file"]::-webkit-file-upload-button {
    margin-right: 0.75rem;
    padding: 0.45rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--sy-primary);
    color: #fff;
    font-family: var(--sy-font-head);
    font-weight: 700;
    cursor: pointer;
}

/* 8. Side menu -------------------------------------------------------------- */

#menu-main {
    background-color: var(--sy-ground);
    /* The panel is pinned top and bottom, so a long menu scrolls inside it instead of being cut off. */
    padding-bottom: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--sy-line) transparent;
}

#menu-main > .bg-theme:first-child {
    background: var(--sy-hero) !important;
    box-shadow: 0 16px 30px -18px rgba(42, 16, 64, 0.7) !important;
}

#menu-main > .bg-theme:first-child h5,
#menu-main > .bg-theme:first-child h6 {
    color: #fff !important;
}

#menu-main > .bg-theme:first-child h5 {
    font-family: var(--sy-font-head) !important;
}

#menu-main > .bg-theme:first-child h6 {
    opacity: 0.8 !important;
}

#menu-main .menu-divider {
    color: var(--sy-accent-text);
    font-family: var(--sy-font-head);
    font-weight: 700;
    letter-spacing: 0.14em;
    opacity: 1;
}

#menu-main .menu-list .card {
    border: 1px solid var(--sy-line);
    border-radius: var(--sy-radius) !important;
    box-shadow: var(--sy-shadow-sm);
}

#menu-main .menu-list a i:first-child {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background-image: none !important;
    background-color: var(--sy-primary-100) !important;
    color: var(--sy-accent-text) !important;
    font-size: 14px;
}

#menu-main .menu-list a i.gradient-brown:first-child {
    background-color: var(--sy-primary) !important;
    color: #fff !important;
}

#menu-main .menu-list a i.shadow-bg::after {
    display: none;
}

#menu-main .menu-list a span {
    color: var(--sy-ink);
    font-size: 14px;
    font-weight: 700;
}

#menu-main .menu-list a i:last-child {
    color: var(--sy-muted);
}

#menu-main .menu-list a.sy-menu-logout i:first-child {
    background-color: #fdecea !important;
    color: #b42318 !important;
}

#menu-main .menu-list a.sy-menu-logout span {
    color: #b42318;
}

.theme-dark #menu-main .menu-list a.sy-menu-logout i:first-child {
    background-color: #3a1a1a !important;
    color: #f0a3a3 !important;
}

.theme-dark #menu-main .menu-list a.sy-menu-logout span {
    color: #f0a3a3;
}

/* 9. App components ----------------------------------------------------------
   Used by the dashboard, wallet and profile screens. */

.sy-screen {
    padding: 0 16px;
}

.sy-greeting {
    margin: 4px 2px 16px;
}

.sy-greeting .sy-greeting-hello {
    margin: 0;
    padding: 0;
    color: var(--sy-muted);
    font-size: 14px;
    font-weight: 700;
}

.sy-greeting-name {
    margin: 0 0 10px;
    color: var(--sy-ink) !important;
    font-family: var(--sy-font-head) !important;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.sy-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    background-color: var(--sy-primary-100);
    color: var(--sy-primary-700);
    font-family: var(--sy-font-head);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.theme-dark .sy-chip {
    color: var(--sy-accent-text);
}

.sy-chip--sun,
.theme-dark .sy-chip--sun {
    background-color: var(--sy-sun);
    color: var(--sy-primary-900);
}

.sy-section-title {
    margin: 28px 2px 14px;
    color: var(--sy-ink) !important;
    font-family: var(--sy-font-head) !important;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.sy-section-title::after {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    margin-top: 8px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--sy-primary), var(--sy-sky));
}

.sy-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(247, 217, 23, 0.55);
    border-radius: var(--sy-radius);
    background-color: var(--sy-sun-soft);
    color: var(--sy-sun-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.sy-notice > i {
    margin-top: 1px;
    font-size: 16px;
}

.sy-notice a {
    color: var(--sy-accent-text);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sy-notice .btn-close {
    margin-left: auto;
    padding: 4px;
    font-size: 10px;
}

/* Balance hero (the site's call-to-action band) */

.sy-hero {
    position: relative;
    overflow: hidden;
    padding: 20px 20px 16px;
    border-radius: 24px;
    background: var(--sy-hero);
    box-shadow: 0 24px 44px -24px rgba(42, 16, 64, 0.75);
    color: #fff;
}

.sy-hero--blue {
    background: var(--sy-hero-blue);
    box-shadow: 0 24px 44px -24px rgba(21, 37, 71, 0.8);
}

.sy-hero .sy-hero-label {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--sy-font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sy-hero-amount {
    margin: 4px 0 0;
    color: #fff !important;
    font-family: var(--sy-font-head);
    font-size: 32px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.sy-hero-amount small {
    margin-left: 6px;
    color: var(--sy-on-hero-soft);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.sy-hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sy-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    font-family: var(--sy-font-head);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.sy-hero-link:hover {
    background-color: #fff;
    color: var(--sy-primary) !important;
}

.sy-hero-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.sy-hero-sub span {
    color: var(--sy-on-hero-soft);
    font-size: 13px;
    font-weight: 700;
}

.sy-hero-sub strong {
    color: #fff;
    font-family: var(--sy-font-head);
    font-size: 17px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.sy-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    grid-auto-flow: column;
    gap: 8px;
    margin-top: 16px;
}

.sy-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    font-family: var(--sy-font-head);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    transition: background-color 0.15s;
}

.sy-action:hover {
    background-color: rgba(255, 255, 255, 0.22);
}

.sy-action i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background-color: var(--sy-sun);
    color: var(--sy-primary-900);
    font-size: 17px;
}

.sy-hero--blue .sy-action i {
    color: #152547;
}

/* Feature tiles (the site's feature cards) */

.sy-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sy-tile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 118px;
    padding: 14px;
    border: 1px solid var(--sy-line);
    border-radius: var(--sy-radius);
    background-color: var(--sy-surface);
    box-shadow: var(--sy-shadow-sm);
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
}

.sy-tile:hover {
    border-color: var(--sy-primary-100);
    box-shadow: var(--sy-shadow);
    transform: translateY(-3px);
}

/* The site's two-tone focus ring: dark outer ring on light areas, yellow inner ring on dark ones. */
.sy-tile:focus-visible,
.sy-action:focus-visible,
.sy-hero-link:focus-visible,
.sy-settings .list-group-item:focus-visible {
    outline: 3px solid var(--sy-primary-900);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--sy-sun);
}

.sy-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 20px;
}

.sy-tile-icon--primary {
    background-color: var(--sy-primary-100);
    color: var(--sy-accent-text);
}

.sy-tile-icon--blue {
    background-color: var(--sy-sky-100);
    color: var(--sy-blue);
}

.sy-tile-icon--sun {
    background-color: var(--sy-sun-soft);
    color: var(--sy-sun-ink);
}

.sy-tile-icon--green {
    background-color: var(--sy-green-soft);
    color: var(--sy-green);
}

.theme-dark .sy-tile-icon--blue {
    color: #9dbbe6;
}

.theme-dark .sy-tile-icon--green {
    color: #7fd3ad;
}

.sy-tile-title {
    display: block;
    color: var(--sy-ink);
    font-family: var(--sy-font-head);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
}

.sy-tile-sub {
    display: block;
    margin-top: 3px;
    color: var(--sy-muted);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
}

/* Banner slider (Bootstrap carousel; dashboard and mall) */

.sy-slider {
    margin-top: 16px;
    overflow: hidden;
    border-radius: var(--sy-radius);
    background-color: var(--sy-surface);
    box-shadow: var(--sy-shadow-sm);
}

.sy-slider .carousel-item img {
    display: block;
    width: 100%;
    height: auto;
}

.sy-slider .carousel-indicators {
    right: auto;
    bottom: 10px;
    left: 50%;
    gap: 4px;
    margin: 0;
    padding: 0 8px;
    border-radius: 999px;
    background-color: rgba(42, 16, 64, 0.4);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transform: translateX(-50%);
}

.sy-slider .carousel-indicators [data-bs-target] {
    width: 7px;
    height: 7px;
    margin: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-radius: 4px;
    background-clip: padding-box;
    background-color: #fff;
    opacity: 0.55;
    transition: width 0.25s, opacity 0.25s;
}

.sy-slider .carousel-indicators .active {
    width: 18px;
    opacity: 1;
}

/* Wallet screen */

.sy-wallets {
    display: grid;
    gap: 16px;
    margin-top: 4px;
}

.sy-wallet-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.sy-wallet-actions .sy-action {
    flex: 1 1 0;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 13px;
}

.sy-wallet-actions .sy-action i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 15px;
}

/* Profile screen */

.sy-member-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 24px;
    background: var(--sy-hero);
    box-shadow: 0 24px 44px -24px rgba(42, 16, 64, 0.75);
    color: #fff;
}

.sy-member-card-mark {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 64px;
    height: auto;
    opacity: 0.95;
}

.sy-member-card .sy-avatar {
    border: 3px solid rgba(255, 255, 255, 0.85);
}

.sy-member-card-name {
    margin: 12px 0 2px;
    color: #fff !important;
    font-family: var(--sy-font-head) !important;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.sy-member-card .sy-member-card-id {
    margin: 0 0 12px;
    padding: 0;
    color: var(--sy-on-hero-soft);
    font-size: 13px;
    font-weight: 700;
}

.sy-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 50%;
    background-color: var(--sy-sun);
    color: var(--sy-primary-900);
    font-family: var(--sy-font-head);
    font-size: 26px;
    font-weight: 800;
}

.sy-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sy-avatar--sm {
    width: 45px;
    height: 45px;
    border-radius: 14px;
    font-size: 19px;
}

.sy-panel {
    margin-top: 16px;
    padding: 4px 16px;
    border: 1px solid var(--sy-line);
    border-radius: var(--sy-radius);
    background-color: var(--sy-surface);
    box-shadow: var(--sy-shadow-sm);
}

.sy-details {
    margin: 0;
}

.sy-details > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--sy-line);
}

.sy-details > div:first-child {
    border-top: 0;
}

.sy-details dt {
    color: var(--sy-muted);
    font-size: 13px;
    font-weight: 700;
}

.sy-details dd {
    margin: 0;
    color: var(--sy-ink);
    font-size: 14px;
    font-weight: 800;
    text-align: right;
    overflow-wrap: anywhere;
}

.sy-details dd .badge {
    font-size: 11px;
    font-weight: 800;
}

.sy-settings {
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid var(--sy-line);
    border-radius: var(--sy-radius);
    background-color: var(--sy-surface);
    box-shadow: var(--sy-shadow-sm);
}

.sy-settings.list-custom .list-group-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-color: var(--sy-line);
    background-color: transparent;
}

.sy-settings.list-custom .list-group-item > div {
    flex: 1 1 auto;
    min-width: 0;
}

.sy-settings.list-custom .list-group-item > i.has-bg {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-right: 12px;
    padding: 0;
    border-radius: 12px;
    background-color: var(--sy-primary-100);
    color: var(--sy-accent-text) !important;
    font-size: 17px;
    line-height: 1;
}

.sy-settings.list-custom .list-group-item strong {
    color: var(--sy-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.sy-settings.list-custom .list-group-item span:not(.badge) {
    margin-top: 1px;
    color: var(--sy-muted);
    font-size: 12px;
    line-height: 1.35;
    opacity: 1;
}

.sy-settings.list-custom .list-group-item > i:last-child:not(.has-bg) {
    position: static;
    margin-left: 8px;
    transform: none;
    color: var(--sy-muted);
    font-size: 11px;
}

/* 10. Buttons, cards and empty states (new markup) ------------------------- */

.sy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 22px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--sy-primary);
    color: #fff !important;
    font-family: var(--sy-font-head);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: none !important;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.2s, background-color 0.2s, color 0.2s;
}

.sy-btn:hover {
    background: var(--sy-primary-700);
    box-shadow: var(--sy-shadow);
    transform: translateY(-2px);
}

.sy-btn:disabled {
    opacity: 0.6;
    pointer-events: none;
}

.sy-btn--block {
    width: 100%;
}

.sy-btn--sm {
    min-height: 38px;
    padding: 7px 16px;
    font-size: 13px;
}

.sy-btn--outline {
    border-color: var(--sy-primary);
    background: transparent;
    color: var(--sy-accent-text) !important;
}

.sy-btn--outline:hover {
    background: var(--sy-primary);
    color: #fff !important;
}

.sy-btn--text-danger {
    min-height: 38px;
    padding: 7px 12px;
    background: transparent;
    color: #b42318 !important;
}

.sy-btn--text-danger:hover {
    background: #fdecea;
    box-shadow: none;
    transform: none;
}

.sy-card {
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid var(--sy-line);
    border-radius: var(--sy-radius);
    background-color: var(--sy-surface);
    box-shadow: var(--sy-shadow-sm);
}

.sy-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--sy-ink) !important;
    font-family: var(--sy-font-head) !important;
    font-size: 15px;
    font-weight: 700;
}

.sy-card-title i {
    color: var(--sy-accent-text);
}

.sy-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 36px 20px;
    border: 1px dashed var(--sy-line);
    border-radius: var(--sy-radius);
    background-color: var(--sy-surface);
    text-align: center;
}

.sy-empty > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 6px;
    border-radius: 50%;
    background-color: var(--sy-primary-100);
    color: var(--sy-accent-text);
    font-size: 26px;
}

.sy-empty-title {
    margin: 0;
    color: var(--sy-ink) !important;
    font-family: var(--sy-font-head) !important;
    font-size: 16px;
    font-weight: 700;
}

.sy-empty .sy-empty-text {
    margin: 0 0 10px;
    color: var(--sy-muted);
    font-size: 13.5px;
    line-height: 1.5;
}

.sy-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-family: var(--sy-font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
    white-space: nowrap;
}

.sy-status--warning { background-color: #fdf3c7; color: #6b5300; }
.sy-status--info { background-color: var(--sy-sky-100); color: #1f4a8a; }
.sy-status--success { background-color: #dcf1e5; color: #17744c; }
.sy-status--danger { background-color: #fdecea; color: #b42318; }
.sy-status--primary,
.sy-status--secondary { background-color: var(--sy-primary-100); color: var(--sy-primary-700); }

.theme-dark .sy-status--warning { background-color: #3a3212; color: #f3e37a; }
.theme-dark .sy-status--info { color: #9dbbe6; }
.theme-dark .sy-status--success { background-color: #16301f; color: #7fd3ad; }
.theme-dark .sy-status--danger { background-color: #3a1a1a; color: #f0a3a3; }
.theme-dark .sy-status--primary,
.theme-dark .sy-status--secondary { color: var(--sy-accent-text); }

/* Referrer tree (jsTree): long node labels scroll sideways instead of being clipped by the card */

#sponsorTree {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

/* 11. Mall ------------------------------------------------------------------ */

.header-bar .sy-cart-badge {
    background-color: var(--sy-sun) !important;
    color: var(--sy-primary-900) !important;
    font-weight: 800;
}

.sy-searchbar {
    position: relative;
    margin: 4px 0 14px;
}

.sy-searchbar i {
    position: absolute;
    top: 50%;
    left: 16px;
    color: var(--sy-muted);
    font-size: 15px;
    transform: translateY(-50%);
    pointer-events: none;
}

.sy-searchbar input {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 42px;
    border: 1px solid var(--sy-line);
    border-radius: 999px;
    background-color: var(--sy-surface);
    box-shadow: var(--sy-shadow-sm);
    color: var(--sy-ink);
    font-size: 14px;
    outline: none;
}

.sy-searchbar input:focus {
    border-color: rgba(117, 50, 168, 0.55);
    box-shadow: 0 0 0 3px rgba(117, 50, 168, 0.12);
}

.sy-chip-row {
    display: flex;
    gap: 8px;
    margin: 0 -16px 6px;
    padding: 2px 16px 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.sy-chip-row::-webkit-scrollbar {
    display: none;
}

.sy-chip-link {
    flex: 0 0 auto;
    padding: 7px 14px;
    border: 1px solid var(--sy-line);
    border-radius: 999px;
    background-color: var(--sy-surface);
    color: var(--sy-ink) !important;
    font-family: var(--sy-font-head);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

.sy-chip-link.is-active,
.sy-chip-link:hover {
    border-color: var(--sy-primary);
    background-color: var(--sy-primary);
    color: #fff !important;
}

.sy-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sy-products--row {
    display: flex;
    gap: 12px;
    margin: 0 -16px;
    padding: 2px 16px 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.sy-products--row::-webkit-scrollbar {
    display: none;
}

.sy-products--row .sy-product {
    flex: 0 0 150px;
    scroll-snap-align: start;
}

.sy-product {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--sy-line);
    border-radius: var(--sy-radius);
    background-color: var(--sy-surface);
    box-shadow: var(--sy-shadow-sm);
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
}

.sy-product:hover {
    border-color: var(--sy-primary-100);
    box-shadow: var(--sy-shadow);
    transform: translateY(-3px);
}

.sy-product:focus-visible {
    outline: 3px solid var(--sy-primary-900);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--sy-sun);
}

.sy-product-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 12px;
    background: #fff;
}

.sy-product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sy-product-media.is-empty,
.sy-pd-gallery .carousel-item.is-empty,
.sy-thumb.is-empty {
    background: linear-gradient(160deg, var(--sy-sky-100), #fff);
}

.sy-product-media.is-empty::before,
.sy-pd-gallery .carousel-item.is-empty::before,
.sy-thumb.is-empty::before {
    content: "\F30C";
    color: rgba(47, 94, 168, 0.35);
    font-family: "bootstrap-icons";
    font-size: 38px;
}

.theme-dark .sy-product-media,
.theme-dark .sy-product-media.is-empty {
    background: #f4f6fb;
}

.sy-product-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--sy-line);
}

.sy-product-name {
    display: -webkit-box;
    overflow: hidden;
    color: var(--sy-ink);
    font-family: var(--sy-font-head);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sy-price {
    margin-top: auto;
    color: var(--sy-accent-text);
    font-family: var(--sy-font-head);
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.sy-price small {
    margin-right: 3px;
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.sy-product-flag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background-color: var(--sy-sun);
    color: var(--sy-primary-900);
    font-family: var(--sy-font-head);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sy-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sy-category {
    position: relative;
    display: flex;
    align-items: flex-end;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--sy-radius);
    background: #fff;
    box-shadow: var(--sy-shadow-sm);
}

.sy-category img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 10px 10px 50px;
    object-fit: contain;
}

.sy-category::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(42, 16, 64, 0) 45%, rgba(42, 16, 64, 0.85) 100%);
}

.sy-category-text {
    position: relative;
    z-index: 1;
    padding: 12px;
    color: #fff;
}

.sy-category-name {
    display: block;
    font-family: var(--sy-font-head);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.sy-category-count {
    display: block;
    color: var(--sy-on-hero-soft);
    font-size: 12px;
    font-weight: 600;
}

/* Product detail */

.sy-pd-gallery {
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid var(--sy-line);
    border-radius: var(--sy-radius);
    background: #fff;
    box-shadow: var(--sy-shadow-sm);
}

.sy-pd-gallery .carousel-item {
    aspect-ratio: 1 / 1;
}

.sy-pd-gallery .carousel-item.is-empty.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sy-pd-gallery .carousel-item.is-empty::before {
    font-size: 64px;
}

.sy-pd-gallery .carousel-item img {
    width: 100%;
    height: 100%;
    padding: 18px;
    object-fit: contain;
}

.sy-pd-gallery .carousel-control-prev,
.sy-pd-gallery .carousel-control-next {
    width: 44px;
    opacity: 1;
}

.sy-pd-gallery .carousel-control-prev-icon,
.sy-pd-gallery .carousel-control-next-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(42, 16, 64, 0.55);
    background-size: 14px;
}

.sy-pd-gallery .carousel-indicators {
    margin-bottom: 8px;
}

.sy-pd-gallery .carousel-indicators [data-bs-target] {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 50%;
    background-color: var(--sy-primary);
    opacity: 0.25;
}

.sy-pd-gallery .carousel-indicators .active {
    opacity: 1;
}

.sy-pd-category {
    display: inline-flex;
    margin-bottom: 8px;
}

.sy-pd-name {
    margin: 0 0 6px;
    color: var(--sy-ink) !important;
    font-family: var(--sy-font-head) !important;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

.sy-pd-price {
    margin: 0 0 16px;
    color: var(--sy-accent-text);
    font-family: var(--sy-font-head);
    font-size: 24px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.sy-pd-price small {
    margin-right: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.sy-pd-buy {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sy-pd-buy .sy-btn {
    flex: 1 1 auto;
}

.sy-description {
    color: var(--sy-ink);
    font-size: 14px;
    line-height: 1.65;
}

.sy-description p {
    margin-bottom: 0.8em;
    color: inherit;
}

.sy-description ul {
    margin: 0 0 0.8em;
    padding-left: 1.2em;
}

.sy-description .sy-empty-text {
    color: var(--sy-muted);
}

/* Quantity stepper (template .stepper markup, custom.js handles the clicks) */

.sy-qty.stepper {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    width: auto;
    height: 44px;
    padding: 3px;
    border: 1px solid var(--sy-line);
    border-radius: 999px;
    background-color: var(--sy-surface);
}

.sy-qty.stepper a,
.sy-qty.stepper button {
    display: inline-flex;
    float: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--sy-primary-100);
    color: var(--sy-accent-text) !important;
    font-size: 16px;
    line-height: 1;
}

.sy-qty.stepper a i,
.sy-qty.stepper button i {
    color: inherit !important;
}

.sy-qty.stepper input {
    width: 42px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--sy-ink) !important;
    font-family: var(--sy-font-head);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    -moz-appearance: textfield;
}

.sy-qty.stepper input::-webkit-outer-spin-button,
.sy-qty.stepper input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.sy-qty--sm.stepper {
    height: 36px;
}

.sy-qty--sm.stepper a,
.sy-qty--sm.stepper button {
    width: 28px;
    height: 28px;
    font-size: 13px;
}

.sy-qty--sm.stepper input {
    width: 34px;
    height: 28px;
    font-size: 14px;
}

/* Cart and checkout */

.sy-line-items {
    display: grid;
    gap: 12px;
}

.sy-line {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sy-line);
}

.sy-line--plain {
    grid-template-columns: minmax(0, 1fr) auto;
}

.sy-line:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.sy-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border: 1px solid var(--sy-line);
    border-radius: 12px;
    background: #fff;
}

.sy-thumb img {
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain;
}

.sy-thumb.is-empty::before {
    font-size: 22px;
}

.sy-line-name {
    display: block;
    margin-bottom: 2px;
    color: var(--sy-ink);
    font-family: var(--sy-font-head);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
}

.sy-line-meta {
    color: var(--sy-muted);
    font-size: 12.5px;
    font-weight: 600;
}

.sy-line-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.sy-line-total {
    color: var(--sy-ink);
    font-family: var(--sy-font-head);
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sy-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background-color: #fdecea;
    color: #b42318;
    font-size: 15px;
    cursor: pointer;
}

.theme-dark .sy-icon-btn {
    background-color: #3a1a1a;
    color: #f0a3a3;
}

.sy-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    color: var(--sy-muted);
    font-size: 14px;
    font-weight: 600;
}

.sy-summary-row strong {
    color: var(--sy-ink);
    font-family: var(--sy-font-head);
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.sy-summary-row--total {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--sy-line);
    color: var(--sy-ink);
}

.sy-summary-row--total strong {
    color: var(--sy-accent-text);
    font-size: 19px;
}

.sy-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.sy-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    padding: 12px 14px;
    border: 1px solid var(--sy-line);
    border-radius: 12px;
    background-color: var(--sy-surface);
    cursor: pointer;
}

.sy-option:has(input:checked) {
    border-color: var(--sy-primary);
    background-color: var(--sy-primary-100);
}

.sy-option input {
    flex: 0 0 auto;
    margin-top: 3px;
    accent-color: var(--sy-primary);
}

.sy-option-text {
    color: var(--sy-ink);
    font-size: 13.5px;
    line-height: 1.5;
}

/* Payment method picker (shared with package purchase) */

.sy-card .payment-method-picker > label {
    display: none !important;
}

.payment-method-picker > label {
    color: var(--sy-ink);
    font-family: var(--sy-font-head);
}

.payment-method-picker .form-check {
    flex: 1 1 0;
    margin: 0;
    padding: 12px 12px 12px 40px;
    border: 1px solid var(--sy-line);
    border-radius: 12px;
    background-color: var(--sy-surface);
}

.payment-method-picker .form-check:has(input:checked) {
    border-color: var(--sy-primary);
    background-color: var(--sy-primary-100);
}

.payment-method-picker .form-check-label {
    color: var(--sy-ink);
    font-size: 13.5px;
    font-weight: 700;
}

.payment-method-picker .d-flex.gap-4 {
    gap: 10px !important;
}

/* Orders */

.sy-orders {
    display: grid;
    gap: 12px;
}

.sy-order {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid var(--sy-line);
    border-radius: var(--sy-radius);
    background-color: var(--sy-surface);
    box-shadow: var(--sy-shadow-sm);
    color: inherit !important;
}

.sy-order:hover {
    border-color: var(--sy-primary-100);
    box-shadow: var(--sy-shadow);
}

.sy-order-id {
    color: var(--sy-ink);
    font-family: var(--sy-font-head);
    font-size: 14px;
    font-weight: 700;
}

a.sy-order-id {
    color: var(--sy-ink) !important;
    text-decoration: none;
}

.sy-order-date {
    color: var(--sy-muted);
    font-size: 12px;
    font-weight: 600;
}

.sy-order-amount {
    color: var(--sy-ink);
    font-family: var(--sy-font-head);
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.sy-order-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    grid-column: 1 / -1;
}

/* Invoice buttons of an order card: above the card's stretched link (z-index 1), so they stay clickable */
.sy-order-actions {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 8px;
    grid-column: 1 / -1;
    margin-top: 4px;
}

.sy-order-actions .sy-btn {
    flex: 1 1 0;
    padding-right: 10px;
    padding-left: 10px;
}

/* A short explanation where something is missing, e.g. why there are no invoice buttons yet */
.sy-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 4px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background-color: var(--sy-primary-100);
    color: var(--sy-primary-700);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.45;
}

.sy-note i {
    flex: 0 0 auto;
    margin-top: 1px;
}

.sy-order .sy-note {
    grid-column: 1 / -1;
}

/* What an invoice card is for (first product / package / item), under the tags */
.sy-order-desc {
    grid-column: 1 / -1;
    color: var(--sy-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.sy-total-count {
    margin: 0 2px 12px;
    color: var(--sy-muted);
    font-size: 13px;
    font-weight: 700;
}

.sy-address {
    color: var(--sy-ink);
    font-size: 14px;
    line-height: 1.6;
}

.sy-address strong {
    display: block;
    font-family: var(--sy-font-head);
    font-size: 15px;
}

.sy-address span {
    display: block;
    color: var(--sy-muted);
}

.sy-pagination .pagination {
    justify-content: center;
    gap: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .sy-btn,
    .sy-product,
    .sy-tile,
    .sy-action,
    .btn.gradient-highlight,
    .btn.gradient-mint,
    .btn.gradient-teal,
    .btn.gradient-blue,
    .btn.bg-blue-dark {
        transition: none;
    }

    .sy-btn:hover,
    .sy-product:hover,
    .sy-tile:hover,
    .btn.gradient-highlight:hover,
    .btn.gradient-mint:hover,
    .btn.gradient-teal:hover,
    .btn.gradient-blue:hover,
    .btn.bg-blue-dark:hover {
        transform: none;
    }
}

/* 12. Share page and dark-mode fixes for older screens --------------------- */
.sy-share {
    text-align: center;
}

.sy-share-logo {
    width: 110px;
    height: auto;
    margin: 4px auto 12px;
}

.sy-share-lead {
    margin: 0 0 14px;
    color: var(--sy-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* The QR code stays dark-on-white in both themes so every scanner can read it. */
.sy-share-qr {
    display: inline-block;
    padding: 12px;
    border-radius: var(--sy-radius);
    background: #fff;
    box-shadow: var(--sy-shadow-sm);
}

.sy-share-qr svg {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
}

.sy-share-code {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 16px 0;
    padding: 12px;
    border: 1px dashed var(--sy-primary);
    border-radius: var(--sy-radius);
    background: var(--sy-primary-100);
}

.sy-share-code span {
    color: var(--sy-muted);
    font-size: 12px;
}

.sy-share-code strong {
    color: var(--sy-accent-text);
    font-family: var(--sy-font-head);
    font-size: 18px;
    letter-spacing: 0.04em;
}

.sy-share-foot {
    margin: 16px 0 0;
    color: var(--sy-muted);
    font-size: 12px;
}

/* Selects need a visible arrow; the template's select.form-control has none. */
select.form-control,
.form-select {
    padding-right: 36px !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23676379' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-position: right 14px center !important;
    background-repeat: no-repeat !important;
    background-size: 12px 12px !important;
    appearance: none;
}

.theme-dark select.form-control,
.theme-dark .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c9a3f0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
}

/* The open list of a select is drawn by the browser (white by default). The template's
   ".theme-dark .form-custom *" makes option text white on transparent, i.e. white on white,
   so both colours are set here with !important, and the native list is asked to be dark too. */
.theme-dark select {
    color-scheme: dark;
}

.theme-dark select option,
.theme-dark select optgroup {
    background-color: var(--sy-surface) !important;
    color: var(--sy-ink) !important;
}

/* Bootstrap alerts keep light backgrounds in dark mode while the template turns headings white. */
.theme-dark .alert-warning {
    border-color: #5a5118;
    background: var(--sy-sun-soft);
    color: var(--sy-sun-ink);
}

.theme-dark .alert-info {
    border-color: #2b3f60;
    background: var(--sy-sky-100);
    color: #cfe0f5;
}

.theme-dark .alert-secondary {
    border-color: var(--sy-line);
    background: var(--sy-ground);
    color: var(--sy-ink);
}

.theme-dark .alert :is(h1, h2, h3, h4, h5, h6, p, strong, small, span:not(.badge)) {
    color: inherit !important;
}

.theme-dark .alert a:not(.btn) {
    color: inherit;
    text-decoration: underline;
}

/* Wallet balance boxes (deposit, withdrawal, package purchase). */
.theme-dark .left_total_wallet .inner_wallet_wrap div {
    color: var(--sy-ink);
}

/* Card headers such as "Redeem Now". */
.card-style > .card-header {
    border-bottom: 1px solid var(--sy-line);
    background: transparent;
    color: var(--sy-ink);
    font-family: var(--sy-font-head);
    font-weight: 700;
}

/* 13. Photo upload field (components/front/common/file-upload) -------------- */
.sy-upload {
    margin-bottom: 16px;
}

.sy-upload-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--sy-ink);
    font-family: var(--sy-font-head);
    font-size: 13px;
    font-weight: 700;
}

.sy-upload-label > i {
    color: var(--sy-accent-text);
}

.sy-upload-zone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 136px;
    padding: 18px;
    border: 2px dashed rgba(117, 50, 168, 0.35);
    border-radius: var(--sy-radius);
    background: var(--sy-ground);
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.sy-upload-zone:hover,
.sy-upload-zone.is-dragging {
    border-color: var(--sy-primary);
    background: var(--sy-primary-100);
}

.sy-upload-zone:focus-within {
    border-color: var(--sy-primary);
    box-shadow: 0 0 0 3px rgba(117, 50, 168, 0.2);
}

.sy-upload-zone.is-invalid {
    border-color: #d64545;
}

/* The real input covers the whole zone, so a tap or drop reaches the browser directly. */
.sy-upload-input {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    font-size: 0;
    cursor: pointer;
}

.sy-upload-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.sy-upload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: var(--sy-primary);
    box-shadow: 0 8px 18px -8px rgba(117, 50, 168, 0.8);
    color: #fff;
    font-size: 22px;
}

.sy-upload-empty strong {
    color: var(--sy-ink);
    font-family: var(--sy-font-head);
    font-size: 14px;
}

.sy-upload-sub {
    color: var(--sy-muted);
    font-size: 12px;
}

/* "drag and drop" only means something with a mouse */
@media (hover: none) {
    .sy-upload-sub {
        display: none;
    }
}

.sy-upload-file {
    display: none;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.sy-upload-zone.has-file {
    justify-content: flex-start;
    min-height: 0;
    padding: 12px;
    border-style: solid;
    border-color: var(--sy-line);
    background: var(--sy-surface);
}

.sy-upload-zone.has-file:hover {
    border-color: var(--sy-primary);
}

.sy-upload-zone.has-file .sy-upload-empty {
    display: none;
}

.sy-upload-zone.has-file .sy-upload-file {
    display: flex;
}

.sy-upload-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--sy-ground);
    object-fit: cover;
}

.sy-upload-thumb[hidden] {
    display: none;
}

/* spinner stand-in while a photo is being prepared, or when the browser can't preview it (HEIC) */
.sy-upload-file::before {
    content: "\F42A";
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--sy-primary-100);
    color: var(--sy-accent-text);
    font-family: "bootstrap-icons";
    font-size: 26px;
}

.sy-upload-thumb[hidden] ~ .sy-upload-meta {
    margin-left: 0;
}

.sy-upload-zone.has-file .sy-upload-file:has(.sy-upload-thumb[hidden])::before {
    display: inline-flex;
}

.sy-upload-zone.is-busy .sy-upload-file::before {
    animation: sy-upload-pulse 1s ease-in-out infinite alternate;
}

@keyframes sy-upload-pulse {
    to {
        opacity: 0.45;
    }
}

.sy-upload-meta {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.sy-upload-name {
    overflow: hidden;
    color: var(--sy-ink);
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sy-upload-size {
    color: var(--sy-muted);
    font-size: 12px;
}

.sy-upload-zone.has-file:not(.is-busy):not(.is-current) .sy-upload-size {
    color: #1f8a55;
}

.theme-dark .sy-upload-zone.has-file:not(.is-busy):not(.is-current) .sy-upload-size {
    color: #7fd6a6;
}

.sy-upload-change {
    flex: 0 0 auto;
    padding: 6px 14px;
    border: 1px solid var(--sy-primary);
    border-radius: 999px;
    color: var(--sy-accent-text);
    font-family: var(--sy-font-head);
    font-size: 12px;
    font-weight: 700;
}

.sy-upload-foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
}

.sy-upload-hint {
    margin: 0;
    color: var(--sy-muted);
    font-size: 12px;
    line-height: 1.4;
}

.sy-upload-remove {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: #d64545;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.sy-upload-remove[hidden] {
    display: none;
}

.sy-upload-error,
.sy-upload .invalid-feedback {
    display: block;
    margin: 6px 0 0;
    color: #d64545;
    font-size: 12px;
}

.sy-upload-error[hidden] {
    display: none;
}

/* jQuery Validate puts its message right after the input; sy-upload.js shows it on the error line. */
.sy-upload-zone > .invalid-feedback {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .sy-upload-zone {
        transition: none;
    }

    .sy-upload-zone.is-busy .sy-upload-file::before {
        animation: none;
    }
}

/* Idle logout warning (layouts/master.blade.php) */
.sy-idle-warning {
    position: fixed;
    right: 12px;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--sy-primary-900);
    box-shadow: 0 10px 30px rgba(20, 4, 40, 0.45);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.sy-idle-warning[hidden] {
    display: none;
}

.sy-idle-warning button {
    flex: 0 0 auto;
    padding: 7px 14px;
    border: 0;
    border-radius: 999px;
    background: var(--sy-sun);
    color: #2a1040;
    font-family: var(--sy-font-head);
    font-size: 12px;
    font-weight: 800;
}

@media screen and (min-width: 768px) {
    /* inside the PC phone frame, keep the bar within the device */
    .sy-device .sy-idle-warning {
        position: absolute;
    }
}
