@font-face {
    font-family: "Hoves";
    src: url("/app/css/hoves/TT-Hoves-Regular.ttf");
    font-weight: normal;
    font-display: swap;
}
@font-face {
    font-family: "Hoves";
    src: url("/app/css/hoves/TT-Hoves-Light.ttf");
    font-weight: 200;
    font-display: swap;
}
@font-face {
    font-family: "Hoves";
    src: url("/app/css/hoves/TT-Hoves-Medium.ttf");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "Hoves";
    src: url("/app/css/hoves/TT-Hoves-DemiBold.ttf");
    font-weight: bold;
    font-display: swap;
}
@font-face {
    font-family: "Hoves";
    src: url("/app/css/hoves/TT-Hoves-Italic.ttf");
    font-style: italic;
    font-display: swap;
}

/* ===== BASE / RESET ===== */
html {
    height: 100%;
    overflow-x: hidden;
}
body {
    font-family: 'Hoves', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
#mainDiv {
    overflow: hidden;
}
.home{
    background-position: center;
    width: 100%;
    background-origin: content-box;
    background-size: cover;
    overflow-x: hidden;
    text-align: center;
    background-color: #fff;
}
/* MediaSummer specific styles */
.full-height {
    height: 100%;
}
.hidden {
    display: none;
}
.relative {
    position: relative;
}
.promo-app .promo-main {
    position: relative;
}
.row-padding {
    padding-left: 30px;
    padding-right: 30px;
}

@media (max-width: 767px) {
    /* ============================================
       УТСНЫ HOME ДИЗАЙН - Нэвтрэх хуудас
       ============================================ */
    html {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }
    body {
        height: auto;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: auto;
        background-color: #fff;
        position: relative;
    }
    body.full-height,
    #home.promo-app {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }
    #mainDiv {
        overflow: visible;
        height: auto;
        min-height: 0;
    }
    /* Background with side borders */
    body::before,
    body::after {
        content: '';
        position: fixed;
        top: 0;
        bottom: 0;
        width: 2px;
        background-color: #E0F2FF;
        z-index: 1000;
        pointer-events: none;
    }
    body::before {
        left: 0;
    }
    body::after {
        right: 0;
    }
    /* Home container */
    .home {
        background-color: #fff;
        min-height: 100vh;
        padding: 0;
    }
    /* Row adjustments */
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    .col-xs-12 {
        padding-left: 0;
        padding-right: 0;
    }
    .col-sm-1 {
        display: none;
    }
    /* Hide desktop elements */
    .col-sm-10 {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    /* Row padding mobile */
    .row-padding {
        padding-left: 15px;
        padding-right: 15px;
    }
    #mainDiv {
        overflow: visible;
    }
}

@media print {
    body::before,
    body::after {
        display: none;
    }
}

/* ===== FORM CONTROLS — login input & continue button ===== */
.homeinput{
    font-size: 14px;
    padding: 15px 15px;
    max-width: 250px;
    width:90%;
    outline: none;
    border: none;
    border-radius: 30px;
    background-color: #B8B8B8;
    color: #FFFFFF;
    text-align: center;
}
.homeinput::-webkit-input-placeholder { /* Chrome, Safari, Edge */
    color: #FFFFFF;
    opacity: 1;
}
.homeinput::-moz-placeholder { /* Firefox 19+ */
    color: #FFFFFF;
    opacity: 1;
}
.homeinput:-ms-input-placeholder { /* IE 10+ */
    color: #FFFFFF;
    opacity: 1;
}
.homeinput::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #FFFFFF;
    opacity: 1; /* Firefox */
}
/* Autofill өнгө өөрчлөгдөхөөс сэргийлэх */
.homeinput:-webkit-autofill,
.homeinput:-webkit-autofill:hover,
.homeinput:-webkit-autofill:focus,
.homeinput:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #B8B8B8 inset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    transition: background-color 5000s ease-in-out 0s;
}
/* Focus болон утга оруулах үед өнгө хэвээр байх */
.homeinput:focus {
    background-color: #B8B8B8;
    color: #FFFFFF;
}
/* Focus үед placeholder нуух */
.homeinput:focus::placeholder {
    opacity: 0;
}
.homeinput:focus::-webkit-input-placeholder {
    opacity: 0;
}
.homeinput:focus::-moz-placeholder {
    opacity: 0;
}
.homeinput:focus:-ms-input-placeholder {
    opacity: 0;
}
/* Утга байх үед placeholder нуух */
.homeinput:not(:placeholder-shown)::placeholder {
    opacity: 0;
}
.homeinput:not(:placeholder-shown)::-webkit-input-placeholder {
    opacity: 0;
}
.homeinput:not(:placeholder-shown)::-moz-placeholder {
    opacity: 0;
}
.homeinput:not(:placeholder-shown):-ms-input-placeholder {
    opacity: 0;
}
.homebtn{
    font-size: 14px;
    padding: 15px 40px;
    max-width: 250px;
    width:90%;
    outline: none;
    border:none;
    border-radius: 50px;
    background: #CE8EFF;
    /*linear-gradient(180deg, #5587ff, #163587);*/
    color: white;
    font-weight: 300;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 8px;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 12px;
    transition: all 0.3s ease;
}
.homebtn span {
    display: inline-block;
    flex: 0 1 auto;
    text-align: center;
}
.homebtn .btn-arrow {
    width: auto;
    height: 12px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    display: inline-block;
    vertical-align: middle;
}
.input-center {
    text-align: center;
}
.btn-margin-top {
    margin-top: 20px;
    border-radius: 30px;
}
.promo-resend {
    color: #333;
    font-size: 14px;
    margin-top: 16px;
    cursor: pointer;
}
.valtext {
    color: #333;
    font-size: 14px;
}
.valtext-style {
    color: #333;
    max-width: 500px;
    margin: 10px auto 0;
    text-align: center;
}

@media (max-width: 767px) {
    /* Input field - dark purple/blue */
    .homeinput {
        width: 85%;
        max-width: 100%;
        padding: 14px 18px;
        font-size: 15px;
        border-radius: 25px;
        background-color: #B8B8B8;
        color: #FFFFFF;
        text-align: center;
        margin: 0 auto 15px; /* center input */
        border: none;
        box-sizing: border-box;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    .homeinput::-webkit-input-placeholder {
        color: #FFFFFF;
        opacity: 1;
    }
    .homeinput::-moz-placeholder {
        color: #FFFFFF;
        opacity: 1;
    }
    .homeinput:-ms-input-placeholder {
        color: #FFFFFF;
        opacity: 1;
    }
    .homeinput::placeholder {
        color: #FFFFFF;
        opacity: 1;
    }
    /* Autofill styles for mobile */
    .homeinput:-webkit-autofill,
    .homeinput:-webkit-autofill:hover,
    .homeinput:-webkit-autofill:focus,
    .homeinput:-webkit-autofill:active {
        -webkit-text-fill-color: #FFFFFF !important;
        transition: background-color 5000s ease-in-out 0s;
    }
    .homeinput:focus {
        background-color: #B8B8B8;
        color: #FFFFFF;
        outline: none;
    }
    /* Continue button - darker blue with arrow */
    .homebtn {
        width: 85%;
        max-width: 100%;
        padding: 14px 36px;
        font-size: 15px;
        border-radius: 25px;
        background: #CE8EFF;
        color: white;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        gap: 10px;
        /* center horizontally on mobile */
        margin: 12px auto 0;
        box-shadow: rgba(0, 0, 0, 0.2) 0px 4px 12px;
        box-sizing: border-box;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    .homebtn span {
        flex: 0 1 auto;
        text-align: center;
    }
    .homebtn .btn-arrow {
        width: 16px;
        height: 16px;
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
        flex-shrink: 0;
        object-fit: contain;
    }
    /* Validation text */
    .valtext-style {
        margin-top: 15px;
        font-size: 14px;
        color: #333;
    }
}

@media (min-width: 360px) and (max-width: 375px) {
    /* Input and button */
    .homeinput,
    .homebtn {
        width: 80%;
        padding: 13px 15px;
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .homeinput,
    .homebtn {
        width: 85%;
        padding: 14px 16px;
        font-size: 14px;
    }
}

/* ===== LOGIN / HOME SCREEN — cover banner ===== */
.coverc{
    margin-top: 30px;
    width: 95%;
    height: auto;
    border-radius: 1vw;
}
.coverb {
    position: relative;
}
#homeDiv.promo-screen--login {
    position: relative;
}
.coverb-margin {
    margin-bottom: 30px;
}
.coverc-mobile {
    display: none;
}

@media (max-width: 767px) {
    #homeDiv.promo-screen--login {
        height: 100dvh;
        overflow: hidden;
    }
    #home #homeDiv .coverb {
        overflow: visible;
    }
    /* Main banner - large dark rounded rectangle (mobile) */
    .coverc {
        /* keep original image available for non-mobile, hide visual duplication on mobile */
        display: none;
    }
    /* Reserve space for mobile banner */
    .coverb {
        position: relative;
        padding-top: 0;
        /* reserve vertical space equal to banner height so following content sits below */
        padding-bottom: 220px;
        box-sizing: border-box;
    }
    /* Mobile banner image styling */
    .coverc-mobile {
        display: block;
        position: absolute;
        top: 56px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 340px;
        height: auto;
        border-radius: 28px;
        z-index: 1;
        pointer-events: none;
    }
    #loginDiv {
        width: 90%;
        max-width: 340px;
        margin: 340px auto 0; /* push below banner */
        padding: 0 0 48px;
        box-sizing: border-box;
    }
    /* Remove extra spacing */
    #loginDiv br {
        display: none;
    }
    #duremDiv .coverc-mobile{
        display: none;
    }
    /* Cover banner for durem */
    .coverb-margin {
        margin-bottom: 20px;
    }
    #duremDiv .coverb,
    #duremDiv .coverb.coverb-margin {
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    #duremDiv .coverc,
    #duremDiv .coverc.coverc-point {
        display: none !important;
    }
}

@media (min-width: 360px) and (max-width: 375px) {
    /* Banner adjustments */
    .coverc-mobile {
        max-width: 315px;
        top: 48px;
        width: 85%;
    }
    .coverb {
        padding-bottom: 200px;
    }
    #loginDiv {
        max-width: 315px;
        margin: 300px auto 0;
        width: 85%;
    }
}

@media (max-width: 320px) {
    /* Home page adjustments */
    #loginDiv {
        width: 95%;
        max-width: 100%;
        margin: 330px auto 0;
    }
    .coverc-mobile {
        width: 95%;
        top: 52px;
    }
    .coverb {
        padding-bottom: 200px;
    }
}

@media (max-width: 767px) and (orientation: landscape) {
    .coverb {
        padding-bottom: 160px;
    }
    .coverc-mobile {
        top: 48px;
    }
    #loginDiv {
        margin: 280px auto 0;
    }
}

@media (min-width: 1680px) and (max-width: 1919px) {
    #home #homeDiv .coverb .coverc,
    #home #duremDiv .coverb .coverc {
        display: block;
        width: 95%;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1920px) {
    #home #homeDiv .coverb .coverc,
    #home #duremDiv .coverb .coverc {
        display: block;
        width: 95%;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 768px) and (max-width: 819px) {
    #home #homeDiv .coverb .coverc,
    #home #duremDiv .coverb .coverc {
        width: 95%;
        max-width: none;
        max-height: none;
    }
}

/* ===== TAB CONTROL — segmented Нүүр/Дүрэм pill switch ===== */
.segmented {
    --bg-light: #EFF5F9;
    --pill-bg: linear-gradient(180deg, #FFFFFF 0%, #DDEAF3 100%);
    --accent-shadow: rgba(15, 12, 68, 0.28);
    --muted-blue: #8CA5BC;

    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 5px;
    background: var(--pill-bg);
    position: relative;
    z-index: 20;
    /* Ensure tabs sit above cover background */
    border-radius: 20px;
    /*box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);*/
    box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
    max-width: 270px;
}
/* Buttons */
.segmented .option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    user-select: none;
    transition: all 180ms cubic-bezier(.2,.9,.3,1);
    color: var(--muted-blue);
    background: transparent;
    border: none;
    outline: none;
    max-width: 130px;
}
/* Icon and label */
.segmented .option .icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    position: relative;
}
/* Нүүр icon (home) */
.promo-tab[data-tab="nuur"] .icon::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url('/app/images/promo/disney/home.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.promo-tab[data-tab="durem"] .icon::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url('/app/images/promo/disney/durem.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.segmented .option .label {
    font-weight: 600;
    font-size: 13px;
    color: inherit;
    line-height: 1;
}
/* Selected state */
.segmented .option.selected {
    color: #fff;
    background: #CE8EFF;
    box-shadow:
    0 10px 26px var(--accent-shadow),
    0 2px 8px rgba(15, 12, 68, 0.12);
    transform: translateY(-2px);
    margin-top: 2px;
    max-width: 130px;
}
/* Unselected muted look */
.segmented .option:not(.selected) .icon,
.segmented .option:not(.selected) .label {
    color: #A0B5C9;
}
/* Focus */
.segmented .option:focus-visible {
    box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
    border-radius: 20px;
}
.nuur-navigation .segmented,
.promo-tabs .segmented,
.row-margin-top .segmented {
    margin: 0 auto;
    max-width: 320px;
    gap: 10px;
    padding: 6px;
}
.nuur-navigation .segmented .option,
.promo-tabs .segmented .option,
.row-margin-top .segmented .option {
    padding: 10px 22px;
}
.nuur-navigation .segmented .option .label,
.promo-tabs .segmented .option .label,
.row-margin-top .segmented .option .label {
    font-size: 14px;
}
.nuur-navigation .segmented .option.selected,
.promo-tabs .segmented .option.selected,
.row-margin-top .segmented .option.selected {
    max-width: 150px;
}
/* goSummer — tab selected gradient */
#home .promo-tabs .segmented .option.selected {
    background: #CE8EFF;
}

@media (max-width: 767px) {
    .nuur-navigation .segmented,
    .row-margin-top .segmented {
        max-width: 300px;
        gap: 8px;
        padding: 5px;
    }
    .nuur-navigation .segmented .option,
    .row-margin-top .segmented .option {
        padding: 9px 18px;
    }
    .nuur-navigation .segmented .option .label,
    .row-margin-top .segmented .option .label {
        font-size: 12px;
    }
}

@media (min-width: 360px) and (max-width: 375px) {
    .nuur-navigation .segmented,
    .row-margin-top .segmented {
        max-width: 250px;
        gap: 4px;
        padding: 2px;
    }
    .nuur-navigation .segmented .option,
    .row-margin-top .segmented .option {
        padding: 6px 10px;
        font-size: 10px;
    }
}

@media (max-width: 320px) {
    .nuur-navigation .segmented,
    .row-margin-top .segmented {
        max-width: 260px;
        padding: 3px;
    }
    .nuur-navigation .segmented .option,
    .row-margin-top .segmented .option {
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .segmented .option {
        min-height: 40px;
        padding: 10px 16px;
    }
}

/* ===== TAB NAVIGATION — placement of the segmented control on each screen ===== */
/* Navigation fixed at bottom for nuur section */
.nuur-navigation {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}
/* goSummer: доод таб — fixed биш, контентын доор */
#home .promo-tabs--flow.nuur-navigation {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    z-index: 100;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 28px auto 32px;
    padding: 0 20px;
    box-sizing: border-box;
}
/* Нүүр: дэлгэцийн доод хэсэгт (nuur-background дотор, fixed биш) */
#home #nuurDiv .promo-tabs--flow {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 100;
}
/* Mobile bottom tabs — зөвхөн утсан дээр */
#home #nuurDiv .nuur-tabs-mobile.promo-tabs--flow,
#home #duremDiv .nuur-tabs-mobile.promo-tabs--flow {
    display: none;
}
.row-margin-top {
    margin-top: 20px;
    margin-bottom: 30px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}
.row-margin-top .col-xs-12 {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 767px) {
    #home #nuurDiv .nuur-tabs-mobile.promo-tabs--flow {
        display: flex;
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 8px auto 24px;
    }
    /* Navigation mobile */
    .nuur-navigation {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        padding: 0 10px;
        margin: 8px auto 24px;
    }
    #home #nuurDiv .promo-tabs--flow {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: 8px auto 24px;
    }
    #home #duremDiv .nuur-tabs-mobile.promo-tabs--flow {
        display: flex;
        margin-top: 8px;
        margin-bottom: 28px;
    }
    /* Navigation for durem mobile */
    .row-margin-top {
        margin-top: 12px;
        margin-bottom: 18px;
    }
}

@media (min-width: 360px) and (max-width: 375px) {
    /* Navigation */
    .nuur-navigation {
        bottom: 12px;
        padding: 0 8px;
    }
}

/* ===== HEADER — back button ===== */
.back-btn{
    position: absolute;
    left: -0.8vw;
    top: -0.8vw;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 998;
    border: 5px solid white;
    border-radius: 50%;
    object-fit: cover;
}
.nuur-header-row {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0 !important;
    padding-top: 30px;   /* coverc-ийн margin-top-тэй ижил */
    z-index: 999;
    pointer-events: none;
}
.nuur-header-col {
    position: relative;
    padding-bottom: 0;
    pointer-events: none;
}
.nuur-header-col .back-btn {
    pointer-events: auto;
}

@media (max-width: 767px) {
    .back-btn {
        left: 5%;
        width: 24px;
        height: 24px;
        border: none;
        border-radius: 0;
        background: transparent;
        cursor: pointer;
        object-fit: contain;
    }
    #nuurDiv .back-btn {
        position: absolute;
        left: 5%;
        top: calc(12px + env(safe-area-inset-top, 0px));
        transform: none;
        z-index: 1001;
        border: none;
        border-radius: 0;
        width: 24px;
        height: 24px;
        object-fit: contain;
    }
}

@media (min-width: 1024px) {
    #homeDiv .back-btn,
    #nuurDiv .back-btn,
    #duremDiv .back-btn {
        left: 9.8vw;
        top: 1.4vw;
        width: 45px;
        height: 45px;
        border: 5px solid white;
        border-radius: 50%;
        position: absolute;
        z-index: 998;
        object-fit: cover;
        transform: none;
        padding: 0;
        min-width: 0;
        min-height: 0;
    }
}

@media (min-width: 360px) and (max-width: 375px) {
    /* Back button - бага зүүн тийш шилжүүлэх */
    .back-btn {
        left: 5%;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on retina displays */
    .back-btn {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

@media (hover: none) and (pointer: coarse) {
    /* Increase touch target sizes */
    .back-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }
}

@media (min-width: 768px) {
    /* 0 байвал хэт дээш — Дүрэм табтай ойролцоо зэрэгцэлд жижиг padding */
    #nuurDiv .nuur-header-row {
        padding-top: 12px;
    }
}

@media (max-width: 767px) {
    #home #nuurDiv .nuur-header-row {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        margin-bottom: 0 !important;
        padding-top: calc(12px + env(safe-area-inset-top, 0px));
        padding-bottom: 4px;
        min-height: 0;
    }
    #home #nuurDiv .nuur-header-row.row {
        margin-top: 0;
        margin-bottom: 0;
    }
}

@media print {
    .back-btn,
    .nuur-navigation,
    .row-margin-top {
        display: none;
    }
}

/* ===== LOADER — clean fullscreen spinner overlay ===== */
#loader {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}
#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.promo-loader__ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(206, 142, 255, 0.18);
    border-top-color: #CE8EFF;
    animation: promo-loader-spin 0.65s linear infinite;
}
@keyframes promo-loader-spin {
    to {
        transform: rotate(360deg);
    }
}
@media (prefers-reduced-motion: reduce) {
    .promo-loader__ring {
        animation-duration: 1.2s;
    }
    #loader {
        transition: none;
    }
}

/* ===== NUUR (HOME) SCREEN — background, user info ===== */
.nuur-background {
    position: relative;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* User Info */
.user-info {
    text-align: center;
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
}
.mid-text {
    font-size: calc(12px + 0.12vw);
    color: #000;
}
.contract-text {
    font-size: calc(14px + 0.15vw);
    font-weight: bold;
    color: #000;
}

@media (max-width: 767px) {
    /* Nuur — scroll зөвхөн энэ section дотор */
    .nuur-background,
    #home #nuurDiv.nuur-background,
    #nuurDiv.nuur-background {
        width: 100vw;
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
        top: auto;
        left: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    /* User info mobile */
    .user-info {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 10px auto;
        width: 90%;
        max-width: 320px;
    }
    .mid-text {
        font-size: 11px;
    }
    .contract-text {
        font-size: 13px;
    }
}

@media (min-width: 360px) and (max-width: 375px) {
    /* User info */
    .user-info {
        max-width: 290px;
        width: 85%;
    }
    .mid-text {
        font-size: 10px;
    }
    .contract-text {
        font-size: 12px;
    }
}

@media (max-width: 320px) {
    .user-info {
        width: 95%;
        top: 10%;
    }
    .mid-text {
        font-size: 11px;
    }
    .contract-text {
        font-size: 13px;
    }
}

@media (max-width: 767px) and (orientation: landscape) {
    /* Adjust for landscape mobile */
    .nuur-background {
        height: auto;
        min-height: 100vh;
    }
    .user-info {
        top: 8%;
    }
}

@media (max-width: 767px) {
    #home #nuurDiv.nuur-background {
        height: 100dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding-top: 0;
    }
}

/* ===== WISH SAVE BUTTON ===== */
/* Хүсэл хадгалах / солих — points-display болон collect-btn-ийн дунд */
.points-button-container .wish-save-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
    z-index: auto;
    width: auto;
    margin: 0;
    pointer-events: none;
}
.wish-save-btn {
    pointer-events: auto;
    background: #CE8EFF;
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    min-width: 0;
    width: 280px;
    height: 48.84px;
    min-height: 48.84px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 -3px 3.9px 0 #B77DE4,
        0 3px 3px 0 rgba(0, 0, 0, 0.25);
}
.wish-save-btn.is-saved {
    background: linear-gradient(180deg, #F5E0FF 0%, #AF79D9 100%);
}
.wish-save-btn.is-disabled,
.wish-save-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}
.wish-save-btn:active {
    transform: translateY(1px);
}
.wish-save-btn.is-disabled:active,
.wish-save-btn:disabled:active {
    transform: none;
}

@media (max-width: 767px) {
    .points-button-container .wish-save-wrap {
        width: 100%;
        max-width: 280px;
    }
    .wish-save-btn {
        width: 100%;
        height: 42px;
        min-height: 42px;
        font-size: 14px;
    }
}

#nuurDiv .wish-save-btn {
    width: min(42vw, 200px);
    height: 44px;
    min-height: 44px;
    font-size: 14px;
}

@media (max-width: 767px) {
    #nuurDiv .points-button-container .wish-save-wrap {
        width: 100%;
        max-width: 280px;
    }
    #nuurDiv .wish-save-btn {
        width: 100%;
        height: 40px;
        min-height: 40px;
        font-size: 13px;
    }
}

@media (min-width: 1024px) and (max-height: 830px) {
    #nuurDiv .wish-save-btn {
        width: min(38vw, 180px);
        height: 40px;
        min-height: 40px;
        font-size: 13px;
    }
}

/* ===== WISH ENVELOPE BUTTON + TEXT MODAL ===== */
/* ============================================================
   WISH ENVELOPE — засварласан хувилбар
   ============================================================ */
#mainDiv .wish-btn {
    --wish-grad: linear-gradient(140deg, #FFAE86 0%, #FF8355 58%, #FF6E3C 100%);

    /* ⬇️ Дүрсний хэмжээг ЗӨВХӨН ЭНЭ ТООГ өөрчилж тохируулна.
       .21 → 42px,  .25 → 50px,  .30 → 60px  (200px × k) */
    --wish-k: .21;
    --wish-env-size: calc(200px * var(--wish-k));

    /* Дотор нь 200px координатаар зурагдана — тул tile ба stroke эх хэмжээгээр */
    --wish-tile: 200px 200px;
    --wish-stroke: 5px;

    --wish-bubble-bg: #F9FBFD;
    --wish-bubble-line: #E4E9F0;
    --wish-gap: 8px;

    position: absolute;
    left: auto;
    right: 4%;
    top: 0;
    z-index: 3;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    height: fit-content;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    line-height: 0;
    pointer-events: auto;
    transform: none;
    transform-origin: top right;
}
/* Wish: утас header / desktop timer — хоёр товч */
.wish-btn--mobile {
    display: none;
}
.wish-btn--desktop {
    display: inline-flex;
}
/* Утасны header — back + wish/logo нэг мөр */
.nuur-mobile-header,
.promo-mobile-header {
    display: none;
}
#mainDiv .wish-btn__br {
    display: none;
}
#mainDiv .wish-btn__bubble {
    position: relative;
    z-index: 2;
    padding: 8px 14px 10px;
    border: 1px solid var(--wish-bubble-line);
    border-radius: 14px;
    background: var(--wish-bubble-bg);
    box-shadow: 0 4px 12px rgba(30, 50, 80, .06);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    font-size: 11px;
    line-height: 1.3;
    color: #16181d;
    text-align: center;
    white-space: nowrap;
}
#mainDiv .wish-btn__bubble::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: var(--wish-bubble-bg);
    border-right: 1px solid var(--wish-bubble-line);
    border-bottom: 1px solid var(--wish-bubble-line);
    border-bottom-right-radius: 3px;
    transform: translateX(-50%) rotate(45deg);
}
#mainDiv .wish-btn__envelope {
    position: relative;
    z-index: 1;
    width: 200px;
    height: 200px;
    margin:
        var(--wish-gap)
        calc((var(--wish-env-size) - 200px) / 2)
        calc(var(--wish-env-size) - 200px - var(--wish-gap));
    border-radius: 50%;
    background: var(--wish-grad);
    background-size: var(--wish-tile);
    box-shadow: 0 6px 16px rgba(255, 110, 60, .28);
    opacity: 1;
    transform: scale(var(--wish-k)) translateZ(0);
    transform-origin: top center;
}
#mainDiv .wish-btn__letter {
    position: absolute;
    left: 57px;
    top: 44px;
    width: 86px;
    height: 96px;
    box-sizing: border-box;
    border: var(--wish-stroke) solid #fff;
    border-radius: 9px;
    background: var(--wish-grad);
    background-size: var(--wish-tile);
    background-position: -57px -44px;
    z-index: 1;
}
#mainDiv .wish-btn__words {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: var(--wish-stroke);
    border-radius: 3px;
    background: #fff;
}
#mainDiv .wish-btn__line1 { top: 14px; width: 36px; }
#mainDiv .wish-btn__line2 { top: 30px; width: 24px; }
#mainDiv .wish-btn__pocket {
    position: absolute;
    left: 42px;
    top: 78px;
    width: 116px;
    height: 84px;
    background: #fff;
    border-radius: 4px 4px 12px 12px;
    clip-path: polygon(0 0, 50% 52.4%, 100% 0, 100% 100%, 0 100%);
    z-index: 2;
}
#mainDiv .wish-btn__flap {
    position: absolute;
    left: 47px;
    top: 83px;
    width: 106px;
    height: 74px;
    background: var(--wish-grad);
    background-size: var(--wish-tile);
    background-position: -47px -83px;
    border-radius: 2px 2px 8px 8px;
    clip-path: polygon(0 6.85%, 50% 61.2%, 100% 6.85%, 100% 100%, 0 100%);
    z-index: 3;
}
/* Wish text modal — bottom sheet on mobile (Messenger/Android style slide-up),
   centered dialog on tablet/desktop. Stays in the layout at all times (no
   display:none) so the open/close transform + fade can actually animate;
   visibility is switched off only after the close transition finishes. */
.wish-text-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.32s;
}
.wish-text-modal.is-open {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}
.wish-text-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 18, 50, 0.55);
    opacity: 0;
    transition: opacity 0.28s ease;
}
.wish-text-modal.is-open .wish-text-modal__backdrop {
    opacity: 1;
}
.wish-text-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    border-radius: 20px 20px 0 0;
    background: linear-gradient(180deg, #ffffff 0%, #f4f1ff 100%);
    box-shadow: 0 -8px 30px rgba(206, 142, 255, 0.22);
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    touch-action: none;
}
.wish-text-modal.is-open .wish-text-modal__panel {
    transform: translateY(0);
}
.wish-text-modal__handle {
    width: 36px;
    height: 4px;
    margin: 2px auto 14px;
    border-radius: 2px;
    background: rgba(206, 142, 255, 0.25);
}
.wish-text-modal__title {
    margin: 0 0 12px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #CE8EFF;
}
.wish-text-modal__input {
    display: block;
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    border: 2px solid #CE8EFF;
    border-radius: 14px;
    resize: vertical;
    font-size: 15px;
    line-height: 1.4;
    color: #222;
    background: #fff;
    box-sizing: border-box;
    touch-action: auto;
}
.wish-text-modal__input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(206, 142, 255, 0.2);
}
.wish-text-modal__actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    touch-action: auto;
}
.wish-text-modal__btn {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.wish-text-modal__btn--cancel {
    background: #eceaf8;
    color: #CE8EFF;
}
.wish-text-modal__btn--save {
    background: #CE8EFF;
    color: #fff;
}
.wish-confirm-modal.wish-text-modal {
    align-items: center;
    padding: 16px;
}
.wish-confirm-modal .wish-text-modal__panel {
    width: min(92vw, 400px);
    max-height: none;
    padding: 24px 20px 18px;
    border-radius: 20px;
    transform: translateY(14px) scale(0.96);
    opacity: 0;
    overflow: visible;
    box-shadow: 0 16px 40px rgba(206, 142, 255, 0.28);
    transition: transform 0.22s ease, opacity 0.22s ease;
}
.wish-confirm-modal.is-open .wish-text-modal__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.wish-confirm-modal__text {
    margin: 0;
    text-align: center;
    font-size: 15px;
    line-height: 1.5;
    color: #1a1733;
}
.gift-saved-modal.wish-text-modal {
    align-items: center;
    padding: 16px;
}
.gift-saved-modal .wish-text-modal__backdrop {
    background: rgba(0, 0, 0, 0.78);
}
.gift-saved-modal .wish-text-modal__panel {
    width: min(84vw, 320px);
    max-height: none;
    padding: 52px 28px 28px;
    border-radius: 32px;
    background: #fff;
    box-shadow: none;
    text-align: center;
}
.gift-saved-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: #111;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gift-saved-modal__close:hover {
    opacity: 0.65;
}
.gift-saved-modal__text {
    margin: 0 0 32px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    color: #111;
}
.gift-saved-modal__btn {
    display: block;
    width: 78%;
    max-width: 200px;
    height: 40px;
    margin: 0 auto;
    padding: 0 16px;
    border: none;
    border-radius: 999px;
    background: #CE8EFF;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.gift-saved-modal__btn:active {
    transform: translateY(1px);
}

/* Tablet / desktop — centered dialog instead of a bottom sheet */
@media (min-width: 768px) {
    .wish-text-modal {
        align-items: center;
        padding: 16px;
    }
    .wish-text-modal__panel {
        width: min(92vw, 420px);
        max-height: 85vh;
        padding: 22px 20px 18px;
        border-radius: 20px;
        box-shadow: 0 16px 40px rgba(206, 142, 255, 0.28);
        transform: translateY(14px) scale(0.96);
        opacity: 0;
        transition: transform 0.22s ease, opacity 0.22s ease;
    }
    .wish-text-modal.is-open .wish-text-modal__panel {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    .wish-text-modal__handle {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wish-text-modal,
    .wish-text-modal__backdrop,
    .wish-text-modal__panel {
        transition-duration: 0.001ms !important;
    }
}

body.wish-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    #mainDiv .wish-btn--desktop {
        grid-area: 1 / 1;
        justify-self: end;
        align-self: center;
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        --wish-k: .18;
        transform: none;
        transform-origin: top right;
        margin: 0;
        z-index: 5;
    }
    #nuurDiv .footer-logo-goplus {
        display: none !important;
    }
    #nuurDiv .wish-btn--desktop {
        display: none !important;
    }
    #nuurDiv .nuur-mobile-header,
    #homeDiv .promo-mobile-header,
    #duremDiv .promo-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        flex-shrink: 0;
        padding: calc(12px + env(safe-area-inset-top, 0px)) 5% 8px;
        box-sizing: border-box;
        position: relative;
        z-index: 1001;
    }
    #nuurDiv .nuur-mobile-header .back-btn,
    #homeDiv .promo-mobile-header .back-btn,
    #duremDiv .promo-mobile-header .back-btn {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
        padding: 0;
        flex-shrink: 0;
        object-fit: contain;
    }
    #homeDiv .promo-mobile-header .footer-logo-goplus,
    #duremDiv .promo-mobile-header .footer-logo-goplus {
        display: block;
        position: static;
        width: 40px;
        height: auto;
        flex-shrink: 0;
        transform: none;
        right: auto;
        top: auto;
        bottom: auto;
        left: auto;
        margin: 0;
        pointer-events: none;
    }
    #homeDiv .promo-mobile-header .footer-logo-media,
    #duremDiv .promo-mobile-header .footer-logo-media {
        display: block;
        position: static;
        width: 65px;
        height: auto;
        flex-shrink: 0;
        transform: none;
        right: auto;
        top: auto;
        bottom: auto;
        left: auto;
        margin: 0;
        pointer-events: none;
    }
    #nuurDiv .nuur-mobile-header .wish-btn--mobile {
        display: flex;
        position: relative;
        right: auto;
        top: auto;
        left: auto;
        transform: none;
        --wish-k: .15;
        width: 30px;
        height: 30px;
        overflow: hidden;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        flex-shrink: 0;
        line-height: 0;
    }
    #nuurDiv .nuur-mobile-header .wish-btn--mobile .wish-btn__envelope {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 200px;
        height: 200px;
        margin: 0 !important;
        transform: translate(-50%, -50%) scale(var(--wish-k));
        transform-origin: center center;
        box-shadow: 0 2px 6px rgba(255, 110, 60, .22);
    }
    #mainDiv .wish-btn__bubble {
        display: none;
    }
    #mainDiv .wish-btn--desktop .wish-btn__envelope {
        margin:
            0
            calc((var(--wish-env-size) - 200px) / 2)
            calc(var(--wish-env-size) - 200px);
        box-shadow: 0 2px 6px rgba(255, 110, 60, .22);
    }
}

@media (min-width: 1024px) {
    #homeDiv .promo-mobile-header,
    #duremDiv .promo-mobile-header {
        display: contents;
    }
}

@media (min-width: 1024px) {
    #mainDiv .wish-btn--desktop {
        position: absolute;
        left: auto;
        right: 4%;
        top: 0;
        transform: none;
        transform-origin: top right;
    }
    #nuurDiv .wish-btn--mobile {
        display: none !important;
    }
    #nuurDiv .nuur-mobile-header {
        display: contents;
    }
}

/* ===== COUNTDOWN TIMER ===== */
/* Timer row + wish button (mainDiv / Нүүр only) */
#mainDiv .timer-row-wrap {
    position: absolute;
    top: 8%;
    left: 0;
    right: 0;
    transform: none;
    z-index: 100;
    width: 100%;
    max-width: none;
    height: 0;
    pointer-events: none;
}
#mainDiv .timer-with-tabs {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: max-content;
    max-width: calc(100% - 24px);
    min-width: 0;
    pointer-events: auto;
}
#mainDiv .timer-with-tabs .timer-side-tab {
    flex-shrink: 0;
    max-width: none;
    margin: 0;
}
#mainDiv .timer-with-tabs .countdown-timer {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    flex-shrink: 0;
}
/* Countdown Timer */
.countdown-timer {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: #CE8EFF;
    border-radius: 20px;
    width: 360px;
    min-height: 90px;
    height: auto;
    padding: 8px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.countdown-timer::before {
    content: '';
    position: absolute;
    top: 18px;
    right: 18px;
    width: 7px;
    height: 7px;
    background: #ff4444;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}
.timer-title {
    text-align: center;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    letter-spacing: 0.3px;
    font-family: 'Hoves', sans-serif;
    line-height: 1.2;
    max-width: 100%;
    padding: 0 4px;
}
.timer-grid {
    display: flex;
    gap: 0;
    align-items: flex-start;
    justify-content: center;
}
.timer-segment {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    justify-items: center;
    align-items: start;
    min-width: 52px;
    text-align: center;
    position: static;
}
.timer-value {
    grid-column: 1;
    grid-row: 1;
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
    font-family: Arial, sans-serif;
}
.timer-label {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
    color: #ffffff;
    font-size: 10px;
    font-weight: 400;
    margin-top: 3px;
    letter-spacing: 1px;
    font-family: 'Hoves', sans-serif;
}
.timer-segment:not(:last-child)::after {
    content: ':';
    grid-column: 2;
    grid-row: 1;
    position: static;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: 2px;
    padding: 0 4px;
    transform: none;
    top: auto;
    right: auto;
    color: #fff;
    font-size: 20px;
    font-weight: normal;
    font-family: Arial, sans-serif;
    line-height: 1;
}

@media (max-width: 767px) {
    /* Countdown timer mobile — normal flow */
    .countdown-timer {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 80px auto 16px;
        width: 90%;
        max-width: 240px;
        height: auto;
        min-height: 68px;
        padding: 7px 10px;
        border-radius: 16px;
    }
    #home #nuurDiv .countdown-timer {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto;
        max-width: 240px;
        min-height: 68px;
    }
    #mainDiv .timer-row-wrap {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        margin: 8px auto 44px;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 68px;
        padding: 0 10px;
        box-sizing: border-box;
        pointer-events: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    #home #nuurDiv .timer-row-wrap {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    #mainDiv .timer-with-tabs {
        grid-area: auto;
        justify-self: center;
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 0 auto;
        gap: 0;
        width: max-content;
        max-width: 100%;
        min-width: 0;
        padding: 0;
        box-sizing: border-box;
        justify-content: center;
    }
    /* Утас: side tabs нуух — доод tab хуучин байдлаар */
    #mainDiv .timer-with-tabs .timer-side-tab {
        display: none;
    }
    #mainDiv .timer-with-tabs .countdown-timer {
        width: auto;
        flex: 0 1 auto;
        min-width: 0;
        max-width: 240px;
        margin: 0 auto;
    }
    .countdown-timer::before {
        width: 6px;
        height: 6px;
        top: 8px;
        right: 8px;
    }
    .timer-title {
        font-size: 10px;
        margin-bottom: 5px;
    }
    .timer-grid {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
    }
    .timer-segment {
        display: inline-grid;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        align-items: start;
        justify-items: center;
        position: static;
        min-width: 0;
    }
    .timer-segment .timer-value {
        display: block;
    }
    .timer-segment .timer-label {
        display: block;
    }
    .timer-value {
        grid-column: 1;
        grid-row: 1;
        font-size: 18px;
    }
    .timer-label {
        grid-column: 1;
        grid-row: 2;
        font-size: 7px;
        letter-spacing: 1px;
    }
    .timer-segment:not(:last-child)::after {
        content: ':';
        grid-column: 2;
        grid-row: 1;
        font-size: 16px;
        line-height: 1;
        padding: 0 3px;
        margin-top: 1px;
        position: static;
        transform: none;
        display: block;
        top: auto;
        right: auto;
        align-self: auto;
    }
}

@media (min-width: 768px) {
    #mainDiv .timer-row-wrap {
        position: absolute;
        top: 8%;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        height: 0;
    }
    #mainDiv .timer-with-tabs {
        position: absolute;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }
    #mainDiv .timer-with-tabs .countdown-timer,
    #nuurDiv .countdown-timer {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 360px;
        height: 90px;
    }
}

/* Tablet: header row (back + wish/logo) */
@media (min-width: 768px) and (max-width: 1023px) {
    .nuur-background,
    #home #nuurDiv.nuur-background,
    #nuurDiv.nuur-background {
        justify-content: flex-start;
        align-items: stretch;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
    }
    #mainDiv {
        overflow: visible;
        height: auto;
        min-height: 0;
    }
    #nuurDiv .footer-logo-goplus,
    #nuurDiv .footer-logo-media {
        display: none !important;
    }
    #nuurDiv .wish-btn--desktop {
        display: none !important;
    }
    #nuurDiv .nuur-mobile-header,
    #homeDiv .promo-mobile-header,
    #duremDiv .promo-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        flex-shrink: 0;
        padding: calc(12px + env(safe-area-inset-top, 0px)) 5% 8px;
        box-sizing: border-box;
        position: relative;
        z-index: 1001;
    }
    #nuurDiv .nuur-mobile-header .back-btn,
    #homeDiv .promo-mobile-header .back-btn,
    #duremDiv .promo-mobile-header .back-btn {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        padding: 0;
        flex-shrink: 0;
        object-fit: contain;
        border: none;
        border-radius: 0;
        background: transparent;
        z-index: auto;
    }
    #homeDiv .promo-mobile-header .footer-logo-goplus,
    #duremDiv .promo-mobile-header .footer-logo-goplus {
        display: block;
        position: static;
        width: 40px;
        height: auto;
        flex-shrink: 0;
        transform: none;
        right: auto;
        top: auto;
        bottom: auto;
        left: auto;
        margin: 0;
        pointer-events: none;
    }
    #homeDiv .promo-mobile-header .footer-logo-media,
    #duremDiv .promo-mobile-header .footer-logo-media {
        display: block;
        position: static;
        width: 65px;
        height: auto;
        flex-shrink: 0;
        transform: none;
        right: auto;
        top: auto;
        bottom: auto;
        left: auto;
        margin: 0;
        pointer-events: none;
    }
    #nuurDiv .nuur-mobile-header .wish-btn--mobile {
        display: flex;
        position: relative;
        right: auto;
        top: auto;
        left: auto;
        transform: none;
        --wish-k: .17;
        width: 34px;
        height: 34px;
        overflow: hidden;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        flex-shrink: 0;
        line-height: 0;
    }
    #nuurDiv .nuur-mobile-header .wish-btn--mobile .wish-btn__envelope {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 200px;
        height: 200px;
        margin: 0 !important;
        transform: translate(-50%, -50%) scale(var(--wish-k));
        transform-origin: center center;
        box-shadow: 0 2px 6px rgba(255, 110, 60, .22);
    }
}

@media (min-width: 360px) and (max-width: 375px) {
    /* Timer */
    .countdown-timer {
        max-width: 220px;
        min-height: 63px;
        padding: 6px 8px;
        width: 85%;
    }
    #mainDiv .timer-row-wrap {
        min-height: 72px;
    }
    #nuurDiv .nuur-mobile-header .wish-btn--mobile {
        --wish-k: .14;
    }
    .timer-value {
        font-size: 18px;
    }
    .timer-title {
        font-size: 9px;
    }
    .timer-label {
        font-size: 7px;
    }
}

@media (max-width: 320px) {
    /* NUUR page adjustments */
    .countdown-timer {
        width: 95%;
        max-width: 220px;
        padding: 6px 10px;
        min-height: 65px;
    }
    #mainDiv .timer-row-wrap {
        min-height: 72px;
    }
    #nuurDiv .nuur-mobile-header .wish-btn--mobile {
        --wish-k: .14;
    }
    .timer-value {
        font-size: 18px;
    }
    .timer-title {
        font-size: 9px;
    }
    .timer-label {
        font-size: 7px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .countdown-timer {
        width: 280px;
        height: 70px;
    }
}

@media (max-width: 767px) and (orientation: landscape) {
    .countdown-timer {
        top: auto;
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    #mainDiv .timer-with-tabs .countdown-timer,
    #nuurDiv .countdown-timer {
        width: min(92vw, 300px);
        height: auto;
        min-height: 76px;
        padding: 6px 12px;
        margin-left: auto;
        margin-right: auto;
    }
}

#nuurDiv .timer-value {
    font-size: 24px;
}

@media (max-width: 767px) {
    #home #nuurDiv .countdown-timer,
    #mainDiv .timer-with-tabs .countdown-timer {
        max-width: 220px;
        min-height: 64px;
    }
    #nuurDiv .timer-value {
        font-size: 18px;
    }
    #nuurDiv .timer-title {
        font-size: 9px;
    }
}

@media (min-width: 1024px) and (max-height: 830px) {
    /* Countdown timer — жижигрүүлэх */
    #mainDiv .timer-row-wrap {
        top: 6%;
    }
    #mainDiv .timer-with-tabs .countdown-timer,
    #nuurDiv .countdown-timer {
        width: 280px;
        height: auto;
        min-height: 68px;
        padding: 6px 12px;
        top: auto;
    }
    #nuurDiv .timer-value {
        font-size: 20px;
    }
    #nuurDiv .timer-title {
        font-size: 11px;
        margin-bottom: 4px;
    }
    #nuurDiv .timer-label {
        font-size: 8px;
    }
}

/* ===== POINTS DISPLAY + COLLECT BUTTON ===== */
/* Points and Button Container */
.points-button-container {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    justify-content: center;
}
/* Points Display */
.points-display {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(180deg, #f6fbfe 0%, #eef6fb 100%);
    border-radius: 30px;
    box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
    position: relative;
    justify-content: center;
    width: 280px;
    height: 48.84px;
    min-height: 48.84px;
}
.points-label {
    font-size: 16px;

    font-weight: 500;
}
.points-value {
    font-size: 24px;
    font-weight: bold;
    color: #AF79D9;
    background: linear-gradient(135deg, #AF79D9 0%, #CE8EFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
/* Collect Button */
.collect-btn {
    background: #CE8EFF;
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    width: 280px;
    height: 48.84px;
    min-height: 48.84px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 -3px 3.9px 0 #B77DE4,
        0 3px 3px 0 rgba(0, 0, 0, 0.25);
}
.collect-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.collect-btn:hover::before {
    width: 300px;
    height: 300px;
}
.collect-btn:active {
    transform: translateY(-1px);
}
.collect-btn span {
    position: relative;
    z-index: 1;
}

@media (max-width: 767px) {
    /* Points and button container mobile */
    .points-button-container {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        flex-direction: column;
        gap: 10px;
        width: 90%;
        max-width: 300px;
        margin: 0 auto 16px;
    }
    .points-display {
        width: 100%;
        height: 42px;
        min-height: 42px;
    }
    .points-label {
        font-size: 13px;
    }
    .points-value {
        font-size: 19px;
    }
    .collect-btn,
    .wish-save-btn {
        width: 100%;
        height: 42px;
        min-height: 42px;
        font-size: 13px;
    }
}

@media (min-width: 360px) and (max-width: 375px) {
    /* Points container */
    .points-button-container {
        max-width: 280px;
        bottom: 120px;
        width: 85%;
    }
    .points-display,
    .collect-btn {
        height: 40px;
        min-height: 40px;
        font-size: 12px;
    }
    .points-label {
        font-size: 12px;
    }
    .points-value {
        font-size: 18px;
    }
}

@media (max-width: 320px) {
    .points-button-container {
        width: 95%;
        max-width: 100%;
        bottom: 120px;
    }
    .points-display,
    .collect-btn {
        height: 40px;
        min-height: 40px;
        font-size: 13px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .points-display,
    .collect-btn {
        width: 260px;
    }
}

@media (min-width: 1920px) {
    .points-display,
    .collect-btn {
        max-width: 320px;
    }
}

@media (max-width: 767px) and (orientation: landscape) {
    .points-button-container {
        bottom: 100px;
        flex-direction: row;
        gap: 10px;
        max-width: 600px;
    }
    .points-display,
    .collect-btn,
    .wish-save-btn {
        width: 30%;
        max-width: 200px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .homebtn,
    .collect-btn {
        min-height: 48px;
    }
}

#nuurDiv .points-button-container {
    bottom: 80px;
    max-width: min(96vw, 720px);
    flex-wrap: wrap;
}
#nuurDiv .points-display,
#nuurDiv .collect-btn,
#nuurDiv .wish-save-btn {
    width: min(28vw, 200px);
    height: 44px;
    min-height: 44px;
    font-size: 14px;
}
#nuurDiv .points-value {
    font-size: 20px;
}
#nuurDiv .points-label {
    font-size: 14px;
}

@media (max-width: 767px) {
    #nuurDiv .points-button-container {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        max-width: 300px;
        margin: 0 auto 16px;
        flex-direction: column;
    }
    #nuurDiv .points-display,
    #nuurDiv .collect-btn,
    #nuurDiv .wish-save-btn {
        width: 100%;
        max-width: 280px;
        height: 40px;
        min-height: 40px;
        font-size: 13px;
    }
    #nuurDiv .points-value {
        font-size: 17px;
    }
}

@media (min-width: 1024px) and (max-height: 830px) {
    /* Points + button — дээш шахах */
    #nuurDiv .points-button-container {
        bottom: 60px;
    }
    #nuurDiv .points-display,
    #nuurDiv .collect-btn,
    #nuurDiv .wish-save-btn {
        width: min(26vw, 180px);
        height: 40px;
        min-height: 40px;
        font-size: 13px;
    }
    #nuurDiv .points-value {
        font-size: 17px;
    }
    #nuurDiv .points-label {
        font-size: 13px;
    }
}

/* ===== FOUR PRIZES CAROUSEL — Нүүр screen gift display ===== */

.four-prizes {
    --prizes-gap: 16px;
    --prizes-visible: 4.5;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(99vw, 1120px);
    max-width: 1120px;
    z-index: 50;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.four-prizes:not(.four-prizes--carousel) {
    --prizes-visible: 4;
}
.four-prizes__viewport {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    container-type: inline-size;
    /* дээд/доод border + shadow хайчлагдахгүй байх */
    padding-block: 28px;
    margin-block: -28px;
}
.four-prizes__viewport::-webkit-scrollbar {
    display: none;
}
.four-prizes__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--prizes-gap, 16px);
    width: max-content;
    min-width: 100%;
    box-sizing: content-box;
    padding: 12px 20px;
}
.four-prizes__dots {
    display: none;
}
.four-prizes__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(206, 142, 255, 0.28);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.four-prizes__dot.is-active {
    background: #CE8EFF;
    transform: scale(1.15);
}
.prizes-nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    z-index: 60;
}
.four-prizes:not(.four-prizes--slider) .prizes-nav {
    display: none;
}
@media (min-width: 1024px) {
    .four-prizes:not(.four-prizes--carousel) .prizes-nav {
        display: none;
    }
}
.prizes-nav:disabled {
    opacity: 0.35;
    cursor: default;
}
.prizes-nav img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}
.four-prizes__item {
    --prize-w: calc((100cqw - (var(--prizes-visible) - 1) * var(--prizes-gap)) / var(--prizes-visible));
    position: relative;
    flex: 0 0 var(--prize-w);
    width: var(--prize-w);
    min-width: var(--prize-w);
    max-width: var(--prize-w);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}
/* Img + info btn — зургийн жинхэнэ хүрээнд тааруулах */
.four-prizes__media {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    line-height: 0;
    border-radius: 24px;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.four-prizes__item .four-prizes__img {
    flex: none;
    width: auto;
    max-width: 100%;
    display: block;
}
.prize-info-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: linear-gradient(145deg, #F5E0FF 0%, #CE8EFF 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 21px;
    text-align: center;
    cursor: pointer;
    box-shadow:
        0 2px 8px rgba(206, 142, 255, 0.35),
        0 0 0 0 rgba(206, 142, 255, 0.2);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.prize-info-btn:hover,
.prize-info-btn:focus-visible,
.four-prizes__item.is-info-open .prize-info-btn {
    transform: scale(1.08);
    box-shadow:
        0 4px 14px rgba(206, 142, 255, 0.4),
        0 0 0 3px rgba(206, 142, 255, 0.18);
    outline: none;
}
.prize-info-tip {
    position: absolute;
    top: 40px;
    right: 4px;
    left: auto;
    z-index: 6;
    width: max-content;
    max-width: min(240px, calc(100% - 12px));
    padding: 12px 14px 13px;
    border-radius: 14px;
    border: 1px solid rgba(206, 142, 255, 0.14);
    background: linear-gradient(165deg, #ffffff 0%, #f3f0ff 55%, #ebe8ff 100%);
    color: #2a2750;
    font-family: 'Hoves', sans-serif;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px) scale(0.94);
    transform-origin: top right;
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow:
        0 10px 28px rgba(206, 142, 255, 0.18),
        0 2px 8px rgba(15, 12, 68, 0.08);
}
.prize-info-tip__arrow {
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f0ff 100%);
    border-top: 1px solid rgba(206, 142, 255, 0.14);
    border-left: 1px solid rgba(206, 142, 255, 0.14);
    border-radius: 2px 0 0 0;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(206, 142, 255, 0.04);
}
.prize-info-tip__title {
    margin: 0 0 6px;
    padding-right: 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #CE8EFF;
    letter-spacing: 0.01em;
}
.prize-info-tip__body {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    color: #4a4768;
}
.prize-info-tip__title + .prize-info-tip__body {
    padding-top: 6px;
    border-top: 1px solid rgba(206, 142, 255, 0.12);
}

@media (hover: hover) and (pointer: fine) {
    .prize-info-btn:hover + .prize-info-tip,
    .prize-info-btn:focus + .prize-info-tip {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
}

/* Утас — sticky :hover / :focus tooltip бүү ажилла */
@media (hover: none), (pointer: coarse), (max-width: 767px) {
    .prize-info-btn:hover + .prize-info-tip,
    .prize-info-btn:focus + .prize-info-tip {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px) scale(0.94);
    }
    .four-prizes__item.is-info-open .prize-info-tip {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
}

.four-prizes__item.is-info-open {
    z-index: 8;
}
.four-prizes__item.is-info-open .prize-info-tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.four-prizes__img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(52vh, 400px);
    object-fit: contain;
    border-radius: 24px;
}
/* Тодорсон бэлэг — үл ялиг саарал */
.four-prizes__img--revealed {
    filter: grayscale(0.5) brightness(0.94);
    opacity: 0.7;
}

.four-prizes__img--empty {
    width: 100%;
    min-height: 120px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 16px;
}
/* Сонгосон бэлэг — цагаан завсар + градиент хүрээ, зураг хайчлагдахгүй */
.four-prizes__item.is-selected {
    z-index: 3;
}
.four-prizes__item.is-selected .four-prizes__media {
    box-shadow: 0 0 26px rgba(206, 142, 255, 0.28);
}
.four-prizes__item.is-selected .four-prizes__media::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 30px;
    background: linear-gradient(145deg, #FDF0FF 0%, #CE8EFF 40%, #E8C8FF 72%, #F5E0FF 100%);
    box-shadow:
        0 0 0 2px #fff,
        0 0 22px rgba(206, 142, 255, 0.32);
    pointer-events: none;
    z-index: 0;
}
.four-prizes__item.is-selected .four-prizes__media::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 27px;
    background: #fff;
    pointer-events: none;
    z-index: 0;
}
.four-prizes__item.is-selected .four-prizes__img {
    position: relative;
    z-index: 1;
    border: none;
    outline: none;
    box-shadow: none;
}
#nuurDiv .four-prizes {
    --prizes-gap: 16px;
    width: min(99vw, 1360px);
    max-width: 1360px;
}
#nuurDiv .four-prizes__row {
    gap: var(--prizes-gap, 16px);
}
#nuurDiv .four-prizes__img {
    max-height: min(62vh, 500px);
}

@media (max-width: 767px) {
    .four-prizes,
    .four-prizes:not(.four-prizes--carousel) {
        /* 1 бүтэн зураг (~67%) + хажуу тал бүрт peek */
        --prizes-visible: 1.5;
        --prizes-gap: 14px;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .four-prizes,
    .four-prizes:not(.four-prizes--carousel) {
        --prizes-visible: 2.5;
        --prizes-gap: 14px;
    }
}
@media (min-width: 1024px) {
    .four-prizes {
        --prizes-visible: 4.5;
        --prizes-gap: 28px;
    }
    .four-prizes:not(.four-prizes--carousel) {
        --prizes-visible: 4;
    }
}

@media (min-width: 1024px) {
    #nuurDiv .four-prizes {
        --prizes-gap: 28px;
        width: min(96vw, 1480px);
        max-width: 1480px;
    }
    #nuurDiv .four-prizes__row {
        gap: var(--prizes-gap);
    }
    #nuurDiv .four-prizes__img {
        max-height: min(68vh, 580px);
    }
}

@media (min-width: 1440px) {
    #nuurDiv .four-prizes {
        --prizes-gap: 36px;
    }
    #nuurDiv .four-prizes__row {
        gap: var(--prizes-gap);
    }
}

@media (min-width: 1680px) and (max-width: 1919px) {
    #nuurDiv .four-prizes {
        width: min(96vw, 1580px);
        max-width: 1580px;
    }
    #nuurDiv .four-prizes__img {
        max-height: min(70vh, 620px);
    }
}

@media (min-width: 1920px) {
    #nuurDiv .four-prizes {
        --prizes-gap: 40px;
        width: min(95vw, 1680px);
        max-width: 1680px;
    }
    #nuurDiv .four-prizes__img {
        max-height: min(72vh, 660px);
    }
    #nuurDiv .four-prizes__row {
        gap: var(--prizes-gap);
    }
}

@media (max-width: 1023px) {
    #nuurDiv .four-prizes {
        width: min(99vw, 780px);
        max-width: 780px;
    }
    #nuurDiv .four-prizes__row {
        gap: 14px;
    }
    #nuurDiv .four-prizes__img {
        max-height: min(48vh, 320px);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #nuurDiv .four-prizes {
        width: min(96vw, 760px);
        max-width: 760px;
    }
    #nuurDiv .four-prizes__img {
        max-height: min(46vh, 360px);
    }
}

@media (min-width: 768px) and (max-width: 819px) {
    #nuurDiv .four-prizes {
        width: min(94vw, 700px);
        max-width: 700px;
    }
    #nuurDiv .four-prizes__row {
        gap: 12px;
    }
    #nuurDiv .four-prizes__img {
        max-height: min(40vh, 280px);
    }
}

@media (max-width: 767px) {
    .prizes-nav {
        display: none !important;
    }
    .four-prizes,
    #home #nuurDiv .four-prizes,
    #nuurDiv .four-prizes {
        --prizes-gap: 14px;
        --prizes-visible: 1.5;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: none;
        max-height: none;
        overflow: visible;
        margin: 0 auto 44px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .four-prizes:not(.four-prizes--carousel) {
        --prizes-visible: 1.5;
    }
    .four-prizes__item {
        scroll-snap-align: center;
    }
    .four-prizes__row {
        padding-block: 8px;
        padding-inline: calc((100cqw - 100cqw / var(--prizes-visible)) / 2);
        gap: var(--prizes-gap, 14px);
    }
    .four-prizes__viewport {
        padding-block: 24px;
        margin-block: -24px;
    }
    .four-prizes__dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 2px 0 0;
        order: 10;
    }
    .prize-info-btn {
        width: 22px;
        height: 22px;
        line-height: 19px;
        font-size: 12px;
        top: 8px;
        right: 8px;
    }
    .prize-info-tip {
        top: 34px;
        right: 2px;
        max-width: min(220px, calc(100% - 8px));
        padding: 10px 12px 11px;
        border-radius: 12px;
    }
    .prize-info-tip__title {
        font-size: 13px;
    }
    .prize-info-tip__body {
        font-size: 12.5px;
    }
    .four-prizes__item.is-selected .four-prizes__media {
        border-radius: 16px;
        box-shadow: 0 0 18px rgba(206, 142, 255, 0.26);
    }
    .four-prizes__item.is-selected .four-prizes__media::before {
        inset: -5px;
        border-radius: 21px;
        box-shadow:
            0 0 0 2px #fff,
            0 0 16px rgba(206, 142, 255, 0.28);
    }
    .four-prizes__item.is-selected .four-prizes__media::after {
        inset: -2px;
        border-radius: 18px;
    }
    .four-prizes__item.is-selected .four-prizes__img {
        border: none;
        border-radius: 16px;
        box-shadow: none;
    }
    .four-prizes__img,
    #nuurDiv .four-prizes__img {
        max-height: min(62vh, 460px);
        border-radius: 16px;
    }
    .four-prizes__media {
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .four-prizes__img,
    #nuurDiv .four-prizes__img {
        max-height: min(58vh, 420px);
    }
}

@media (min-width: 360px) and (max-width: 375px) {
    .four-prizes__img,
    #nuurDiv .four-prizes__img {
        max-height: min(56vh, 400px);
    }
}

@media (max-width: 320px) {
    .four-prizes__img,
    #nuurDiv .four-prizes__img {
        max-height: min(52vh, 360px);
    }
}

@media (min-width: 1024px) and (max-height: 830px) {
    #nuurDiv .four-prizes {
        width: min(99vw, 1240px);
        max-width: 1240px;
        top: 42%;
    }
    #nuurDiv .four-prizes__row {
        gap: 16px;
    }
    #nuurDiv .four-prizes__img {
        max-height: min(48vh, 380px);
    }
}

@media (min-width: 768px) and (max-width: 1023px) and (max-height: 830px) {
    #nuurDiv .four-prizes__img {
        max-height: min(50vh, 380px);
    }
    #nuurDiv .four-prizes {
        width: min(99vw, 1100px);
        max-width: 1100px;
    }
}

@media (min-width: 768px) and (max-width: 819px) and (max-height: 830px) {
    #nuurDiv .four-prizes {
        width: min(94vw, 680px);
        max-width: 680px;
    }
    #nuurDiv .four-prizes__img {
        max-height: min(36vh, 285px);
    }
}

/* ===== DUREM (RULES) SCREEN ===== */
#home #duremDiv .social-icons {
    margin-bottom: 16px;
}
/* Hide footer logos in DUREM section on desktop */
#duremDiv .footer-logo-goplus,
#duremDiv .footer-logo-media {
    display: none;
}
/* Hide mobile image on desktop */
.durem-image-mobile {
    display: none;
}
/* Show desktop image on desktop */
.durem-image {
    display: block;
}
.durem-section {
    padding-bottom: 40px;
    margin-top: -40px;
}
.durem-content {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}
.durem-image {
    width: 70%;
    max-width: 800px;
    height: auto;
    margin-bottom: 16px;
    border-radius: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
}
.durem-title {
    font-size: calc(14px + 0.2vw);
    font-weight: bold;
    color: #000;
    text-align: center;
    margin-bottom: 10px;
}
.durem-intro {
    font-size: calc(11px + 0.08vw);
    color: #000;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 20px;
}
/* Hide mobile intro on desktop */
.durem-intro-mobile {
    display: none;
}
.wish-content {
    margin-top: 20px;
    position: relative;
    z-index: 10;
}
.wish-title {
    font-size: calc(14px + 0.2vw);
    font-weight: bold;
    color: #000;
    text-align: center;
    margin-bottom: 10px;
}
.wish-intro {
    font-size: calc(11px + 0.08vw);
    color: #000;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 12px;
}
.wish-intro-mobile {
    display: none;
}
.wish-gifts {
    width: 100%;
    max-width: 880px;
    margin: 0 auto 12px;
    padding: 0 4px;
}
.wish-gifts__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    justify-items: center;
}
.wish-gifts__item {
    width: 100%;
    max-width: none;
}
.wish-gifts__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 16px;
}
.wish-gifts__img--empty {
    min-height: 155px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 16px;
}
.durem-rules {
    width: 100%;
    max-width: 680px;
    margin: 8px auto 16px;
    padding: 0 4px;
}
.durem-rules__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.durem-rule-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 8px 6px 8px 14px;
    border-radius: 24px;
    background: #F6F9FF;
    border: 1px solid rgba(206, 142, 255, 0.14);
    box-shadow: rgba(0, 0, 15, 0.06) 1px 2px 4px 1px inset;
}
.durem-rule-card__text {
    margin: 0;
    flex: 1;
    min-width: 0;
    text-align: left;
    font-size: calc(12px + 0.12vw);
    line-height: 1.35;
    color: #1a1733;
}
.durem-rule-card__text strong {
    font-weight: 700;
}
.durem-rule-card__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 32px;
    padding: 0 12px;
    border-radius: 16px;
    background: #CE8EFF;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
/* Social media icons */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}
.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
}
.social-icon:hover {
    transform: scale(1.1);
}
.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 767px) {
    /* Durem section container — scroll section дотор */
    #duremDiv {
        width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background-color: #fff;
        padding-top: 0;
        box-sizing: border-box;
    }
    #duremDiv .durem-section {
        margin-top: 0;
        padding-top: 8px;
        padding-bottom: 24px;
    }
    #duremDiv .durem-content {
        margin-top: 0;
    }
    .durem-title {
        font-size: 17px;
        margin-bottom: 8px;
    }
    /* Hide all durem-intro on mobile */
    .durem-intro {
        display: none !important;
    }
    /* Show mobile intro on mobile */
    .durem-intro-mobile {
        display: block;
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 10px;
        text-align: center;
        color: #000;
    }
    .wish-intro {
        display: none !important;
    }
    .wish-intro-mobile {
        display: block;
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 10px;
        text-align: center;
        color: #000;
    }
    .wish-gifts {
        max-width: 420px;
    }
    .wish-gifts__grid {
        grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
        gap: 10px;
    }
    .wish-gifts__item {
        max-width: 165px;
    }
    .wish-gifts__img {
        max-height: 165px;
        border-radius: 14px;
    }
    .durem-rules {
        max-width: 330px;
        padding: 0 8px;
    }
    .durem-rules__grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }
    .durem-rule-card {
        min-height: 44px;
        padding: 7px 6px 7px 12px;
    }
    .durem-rule-card__text {
        font-size: 13px;
        line-height: 1.3;
    }
    .durem-rule-card__badge {
        min-width: 58px;
        height: 29px;
        font-size: 11.5px;
    }
    /* Hide desktop image on mobile */
    .durem-image {
        display: none;
    }
    /* Show mobile image on mobile */
    .durem-image-mobile {
        display: block;
        width: 92%;
        max-width: 340px;
        border-radius: 16px;
        margin-bottom: 12px;
        margin-left: auto;
        margin-right: auto;
        object-fit: contain;
    }
    /* Social icons mobile */
    .social-icons {
        gap: 12px;
        margin-top: 10px;
        margin-bottom: 12px;
    }
    .social-icon {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 360px) and (max-width: 375px) {
    /* Durem */
    .durem-image-mobile {
        max-width: 315px;
        width: 85%;
    }
    #duremDiv .durem-content {
        margin-top: 0;
    }
    .durem-title {
        font-size: 16px;
    }
    .durem-intro-mobile {
        font-size: 12px;
    }
    .social-icon {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 320px) {
    /* DUREM page adjustments */
    #duremDiv .durem-content {
        margin-top: 0;
    }
    .durem-title {
        font-size: 16px;
    }
    .durem-intro-mobile {
        font-size: 12px;
    }
    .durem-image-mobile {
        width: 98%;
        max-width: 100%;
    }
    .social-icon {
        width: 36px;
        height: 36px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .durem-image {
        width: 75%;
        max-width: 700px;
    }
}

@media (min-width: 1920px) {
    .durem-image {
        max-width: 920px;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .durem-image,
    .durem-image-mobile,
    .coverc-mobile {
        image-rendering: -webkit-optimize-contrast;
    }
}

@media (hover: none) and (pointer: coarse) {
    .social-icon {
        min-width: 44px;
        min-height: 44px;
    }
}

@media (min-width: 1680px) and (max-width: 1919px) {
    #duremDiv .durem-section > .col-md-1 {
        display: none;
    }
    #duremDiv .durem-section > .col-md-10 {
        float: none;
        width: 100%;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
    #duremDiv .durem-image {
        width: 100%;
        max-width: 860px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1920px) {
    #duremDiv .durem-section > .col-md-1 {
        display: none;
    }
    #duremDiv .durem-section > .col-md-10 {
        float: none;
        width: 100%;
        max-width: 960px;
        margin-left: auto;
        margin-right: auto;
    }
    #duremDiv .durem-image {
        width: 100%;
        max-width: 920px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 768px) and (max-width: 819px) {
    .durem-image {
        width: 72%;
        max-width: 640px;
    }
}

/* ===== FOOTER LOGOS ===== */
.footer-logo-media,
.footer-logo-goplus {
    width: 140px;
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
}
.footer-logo-goplus {
    width: 90px;
}
/* Login: leave room so logo does not overlap form on desktop */
@media (min-width: 768px) {
    #homeDiv.promo-screen--login {
        padding-bottom: 90px;
        overflow: visible;
    }
    #homeDiv .footer-logo-media {
        bottom: 0;
        width: 120px;
    }
    #homeDiv .footer-logo-goplus {
        bottom: 0;
        width: 80px;
    }
}
/* Hide footer logos in NUUR section on desktop */
#nuurDiv .footer-logo-goplus,
#nuurDiv .footer-logo-media {
    display: none;
}

@media (max-width: 767px) {
    /* Back button - top left; logo - top right (scroll-той хамт) */
    .back-btn,
    .footer-logo-goplus,
    .footer-logo-media {
        top: 5%;
        transform: translateY(-50%);
        position: absolute;
        z-index: 1001;
    }
    .footer-logo-goplus,
    .footer-logo-media {
        right: 5%;
        top: 5%;
        width: 65px;
        height: auto;
        bottom: auto;
        left: auto;
    }
    .footer-logo-goplus {
        width: 40px;
    }
    #home #nuurDiv .footer-logo-goplus,
    #nuurDiv .footer-logo-media {
        display: block;
        position: absolute;
        right: 5%;
        top: 5%;
        transform: translateY(-50%);
        width: 65px;
        height: auto;
        bottom: auto;
        left: auto;
        z-index: 1001;
    }
    #home #nuurDiv .footer-logo-goplus {
        width: 40px;
    }
    #nuurDiv .back-btn,
    #nuurDiv .footer-logo-media,
    #nuurDiv .footer-logo-goplus {
        top: calc(12px + env(safe-area-inset-top, 0px));
        transform: none;
    }
    /* Header logo — #nuurDiv шууд хүүхэд (scroll container-той ижил давхарга) */
    #nuurDiv > .footer-logo-goplus,
    #nuurDiv > .footer-logo-media {
        position: absolute;
        top: calc(12px + env(safe-area-inset-top, 0px));
        right: 5%;
        left: auto;
        bottom: auto;
        transform: none;
        z-index: 1001;
    }
    #nuurDiv > .footer-logo-goplus {
        width: 40px;
    }
    #nuurDiv > .footer-logo-media {
        width: 65px;
    }
    #home #homeDiv .promo-mobile-header .back-btn,
    #home #duremDiv .promo-mobile-header .back-btn {
        position: static;
        left: auto;
        top: auto;
        transform: none;
    }
    #home #homeDiv .promo-mobile-header .footer-logo-goplus,
    #home #duremDiv .promo-mobile-header .footer-logo-goplus,
    #home #homeDiv .promo-mobile-header .footer-logo-media,
    #home #duremDiv .promo-mobile-header .footer-logo-media {
        position: static;
        right: auto;
        top: auto;
        bottom: auto;
        left: auto;
        transform: none;
    }
}

@media (min-width: 360px) and (max-width: 375px) {
    .footer-logo-goplus,
    .footer-logo-media {
        right: 5%;
        width: 60px;
    }
    .footer-logo-goplus {
        width: 36px;
    }
    #home #nuurDiv .footer-logo-goplus,
    #nuurDiv .footer-logo-media {
        right: 5%;
        width: 60px;
    }
    #home #nuurDiv .footer-logo-goplus {
        width: 36px;
    }
    #home #homeDiv .promo-mobile-header .footer-logo-goplus,
    #home #duremDiv .promo-mobile-header .footer-logo-goplus {
        width: 36px;
    }
    #home #homeDiv .promo-mobile-header .footer-logo-media,
    #home #duremDiv .promo-mobile-header .footer-logo-media {
        width: 60px;
    }
}

@media (max-width: 320px) {
    .footer-logo-goplus,
    .footer-logo-media {
        right: 5%;
        width: 55px;
        left: auto;
    }
    .footer-logo-goplus {
        width: 35px;
    }
    #nuurDiv .footer-logo-goplus,
    #nuurDiv .footer-logo-media {
        right: 5%;
        width: 55px;
        left: auto;
    }
    #nuurDiv .footer-logo-goplus {
        width: 35px;
    }
    #home #homeDiv .promo-mobile-header .footer-logo-goplus,
    #home #duremDiv .promo-mobile-header .footer-logo-goplus {
        width: 35px;
    }
    #home #homeDiv .promo-mobile-header .footer-logo-media,
    #home #duremDiv .promo-mobile-header .footer-logo-media {
        width: 55px;
    }
}

