/* ================================================
   LoveSync - Landing Page Styles
   Clean-room mobile landing page for coursework
   ================================================ */

@font-face {
    font-family: "Quicksand";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("assets/fonts/quicksand.woff2") format("woff2");
}

/* === CSS Reset & Base === */
*,
*:before,
*:after {
    box-sizing: border-box;
    border: 0 solid #e5e7eb;
}

html,
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #0a0408;
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    line-height: 1.5;
    color: #fff;
    overscroll-behavior: none;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    height: 100%;
}

button,
input {
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
}

/* === Splash Root === */
.sp-root {
    z-index: 99999;
    -webkit-user-select: none;
    user-select: none;
    padding: 0;
    padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0);
    background: #0a0408;
    flex-direction: column;
        font-family: 'Quicksand', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    overflow: hidden;
}

.sp-root--leaving {
    pointer-events: none;
    transform: scale(0.985);
    filter: blur(8px);
    opacity: 0 !important;
}


/* === Matching Progress Interstitial === */
.mp-page {
    z-index: 100000;
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    height: var(--app-height, 100dvh);
    overflow: hidden;
    color: #fff;
    background: #0a0408;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.mp-page[hidden] {
    display: none;
}

.mp-page--active {
    opacity: 1;
    transform: translateY(0);
}

.mp-bg {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
}

.mp-bg-track {
    display: flex;
    flex-direction: column;
    min-height: 200%;
    animation: mp-bg-scroll 20s linear infinite;
}

.mp-bg-track--right {
    transform: translateY(-25%);
    animation-name: mp-bg-scroll-reverse;
}

.mp-photo {
    min-height: 34vh;
    flex: 0 0 34vh;
    background-size: cover;
    background-position: center;
    filter: blur(1.2px) saturate(1.16) brightness(0.92);
    transform: scale(1.025);
}

.mp-photo--one { background-image: url("assets/images/profiles/profile-01.jpeg"); }
.mp-photo--two { background-image: url("assets/images/profiles/profile-02.jpeg"); }
.mp-photo--three { background-image: url("assets/images/profiles/profile-03.jpeg"); }
.mp-photo--four { background-image: url("assets/images/profiles/profile-04.jpeg"); }
.mp-photo--five { background-image: url("assets/images/profiles/profile-05.jpeg"); }
.mp-photo--six { background-image: url("assets/images/profiles/profile-06.jpeg"); }

.mp-bg-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 0%, rgba(225, 29, 72, 0.28) 0%, rgba(225, 29, 72, 0) 38%),
        radial-gradient(circle at 16% 86%, rgba(255, 138, 80, 0.18) 0%, rgba(255, 138, 80, 0) 42%),
        linear-gradient(180deg, rgba(10, 4, 8, 0.52), rgba(10, 4, 8, 0.78)),
        rgba(0, 0, 0, 0.12);
}

.mp-orb {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(255, 77, 117, 0.18);
    filter: blur(22px);
    mix-blend-mode: screen;
    animation: mp-orb-float 5s ease-in-out infinite;
}

.mp-orb--top {
    top: -90px;
    right: -160px;
}

.mp-orb--bottom {
    bottom: -160px;
    left: 18%;
    background: rgba(255, 138, 80, 0.14);
    animation-delay: 0.9s;
}

@keyframes mp-bg-scroll {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

@keyframes mp-bg-scroll-reverse {
    from { transform: translateY(-50%); }
    to { transform: translateY(0); }
}

@keyframes mp-orb-float {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.78;
    }

    50% {
        transform: translate3d(10px, -14px, 0) scale(1.06);
        opacity: 1;
    }
}

.mp-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(88vw, 398px);
    transform: translate(-50%, -50%);
    padding: clamp(72px, 9vh, 82px) clamp(24px, 6vw, 34px) clamp(34px, 5.6vh, 46px);
    border-radius: clamp(28px, 7vw, 38px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)),
        linear-gradient(135deg, rgba(254, 78, 96, 0.26), rgba(120, 35, 75, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.42),
        0 12px 36px rgba(225, 29, 72, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    backdrop-filter: blur(18px) saturate(1.12);
    text-align: left;
    overflow: hidden;
}

.mp-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 77, 117, 0.34) 0%, rgba(255, 77, 117, 0) 28%),
        radial-gradient(circle at 8% 96%, rgba(255, 138, 80, 0.2) 0%, rgba(255, 138, 80, 0) 36%);
}

.mp-card::after {
    content: "";
    position: absolute;
    top: -70%;
    bottom: -70%;
    left: -56%;
    z-index: 0;
    width: 42%;
    pointer-events: none;
    transform: rotate(22deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    animation: mp-card-shine 3.6s ease-in-out infinite;
}

@keyframes mp-card-shine {
    0%, 44% {
        left: -56%;
        opacity: 0;
    }

    56% {
        opacity: 1;
    }

    78%, 100% {
        left: 124%;
        opacity: 0;
    }
}

.mp-timer {
    position: absolute;
    z-index: 2;
    top: 20px;
    right: 20px;
    min-width: 88px;
    min-height: 42px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ff4d75;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 244, 0.78));
    border: 1px solid rgba(255, 77, 117, 0.38);
    font-weight: 900;
    font-size: 18px;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.mp-title {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    max-width: 78%;
    color: #fff;
    font-size: clamp(27px, 6.7vw, 38px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-align: left;
    text-shadow: 0 5px 18px rgba(0, 0, 0, 0.32);
}

.mp-copy {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(17px, 4.4vw, 23px);
    line-height: 1.5;
    font-weight: 700;
    text-align: left;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.mp-progress {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 16px;
    margin-top: clamp(34px, 6vh, 44px);
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.16),
        0 10px 26px rgba(225, 29, 72, 0.18);
}

.mp-progress-fill {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 50%),
        linear-gradient(90deg, #ff4d75 0%, #d8123b 100%);
    box-shadow:
        0 0 18px rgba(255, 77, 117, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transform: scaleX(0);
    transform-origin: left center;
}

.mp-progress-fill--running {
    animation: mp-progress-run 5s linear forwards;
}

@keyframes mp-progress-run {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (max-width: 380px), (max-height: 700px) {
    .mp-card {
        width: min(90vw, 376px);
        padding: 64px 22px 34px;
    }

    .mp-timer {
        top: 16px;
        right: 16px;
        min-width: 74px;
        min-height: 38px;
        font-size: 16px;
    }

    .mp-title {
        max-width: none;
    }

    .mp-progress {
        margin-top: 32px;
        height: 14px;
    }
}

/* === Age Question Interstitial === */
.aq-page {
    z-index: 100000;
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    height: var(--app-height, 100dvh);
    overflow: hidden;
    color: #fff;
    background: #0a0408;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.aq-page[hidden] {
    display: none;
}

.aq-page--active {
    opacity: 1;
    transform: translateY(0);
}

.aq-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(88vw, 398px);
    transform: translate(-50%, -50%);
    padding: clamp(34px, 6vh, 46px) clamp(24px, 6vw, 34px);
    border-radius: clamp(28px, 7vw, 38px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)),
        linear-gradient(135deg, rgba(254, 78, 96, 0.26), rgba(120, 35, 75, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.42),
        0 12px 36px rgba(225, 29, 72, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    backdrop-filter: blur(18px) saturate(1.12);
    overflow: hidden;
}

.aq-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 77, 117, 0.34) 0%, rgba(255, 77, 117, 0) 28%),
        radial-gradient(circle at 8% 96%, rgba(255, 138, 80, 0.2) 0%, rgba(255, 138, 80, 0) 36%);
}

.aq-badge,
.aq-title,
.aq-copy,
.aq-actions,
.aq-message {
    position: relative;
    z-index: 1;
}

.aq-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    color: #ff4d75;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 244, 0.78));
    border: 1px solid rgba(255, 77, 117, 0.38);
    font-size: 18px;
    font-weight: 900;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.aq-timer {
    position: absolute;
    z-index: 2;
    top: clamp(28px, 6vh, 46px);
    right: clamp(24px, 6vw, 34px);
    min-width: 86px;
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ff4d75;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 244, 0.78));
    border: 1px solid rgba(255, 77, 117, 0.38);
    font-size: 18px;
    font-weight: 900;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.aq-title {
    margin: 22px 0 12px;
    color: #fff;
    font-size: clamp(30px, 7.2vw, 42px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-align: left;
    text-shadow: 0 5px 18px rgba(0, 0, 0, 0.32);
        text-wrap: balance;
        hyphens: auto;
}

.aq-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(17px, 4.4vw, 22px);
    line-height: 1.5;
    font-weight: 700;
    text-align: left;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
        text-wrap: balance;
        hyphens: auto;
}

.aq-actions {
    display: grid;
    gap: 12px;
    margin-top: clamp(28px, 5vh, 38px);
}

.aq-option {
    width: 100%;
        min-height: 58px;
        height: auto;
        border: none;
    border-radius: 999px;
    cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
        touch-action: manipulation;
        font-size: clamp(17px, 4.8vw, 19px);
    font-weight: 900;
    letter-spacing: 0.01em;
        line-height: 1.15;
        padding: 14px 18px;
        white-space: normal;
        text-align: center;
        hyphens: auto;
    transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.16s;
}

.aq-option:active {
    transform: scale(0.975);
}

.aq-option:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.aq-option--processing,
.aq-option--processing:disabled,
.aq-image-option.aq-option--processing,
.aq-image-option.aq-option--processing:disabled {
    color: rgba(255, 255, 255, 0.82);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
        linear-gradient(135deg, rgba(120, 35, 75, 0.72), rgba(80, 38, 58, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    opacity: 1;
}

.aq-option--yes {
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 50%),
        linear-gradient(135deg, #ff4d75 0%, #d8123b 100%);
    box-shadow:
        0 14px 36px rgba(225, 29, 72, 0.48),
        inset 0 1px rgba(255, 255, 255, 0.3);
}

.aq-option--no {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.aq-message {
    margin: 14px 0 0;
    color: #ffd077;
    font-size: 15px;
    font-weight: 800;
}

.aq-card--image-question {
    max-height: calc(var(--app-height, 100dvh) - 36px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: clamp(18px, 3vh, 26px);
}

.aq-page--image-selected .aq-card--image-question {
    padding-top: clamp(18px, 3vh, 26px);
}

.aq-card--image-question::-webkit-scrollbar {
    display: none;
}

.aq-image-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: clamp(24px, 4vh, 32px);
}

.aq-page--image-selected .aq-image-grid {
    margin-top: 18px;
}

.aq-image-option {
    position: relative;
    min-height: 188px;
    padding: 0;
        border: none;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
        touch-action: manipulation;
    background: rgba(255, 255, 255, 0.1);
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.18),
            0 12px 28px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.16s, opacity 0.16s;
}

.aq-image-option:active {
    transform: scale(0.975);
}

.aq-image-option:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.aq-image-option img {
    display: block;
    width: 100%;
    height: 188px;
    object-fit: cover;
    object-position: center;
        pointer-events: none;
        -webkit-user-drag: none;
        user-select: none;
}


.butt-option span {
    display: none;
}

.aq-image-option span {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    background: rgba(10, 4, 8, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.48);
}

@media (max-width: 380px), (max-height: 700px) {
    .aq-card {
        width: min(90vw, 376px);
        padding: 30px 22px;
    }

    .aq-option {
        min-height: 52px;
        font-size: 17px;
    }

    .aq-timer {
        top: 30px;
        right: 22px;
        min-width: 74px;
        min-height: 38px;
        font-size: 16px;
    }

    .aq-image-grid {
        gap: 10px;
    }

    .aq-image-option {
        min-height: 148px;
        border-radius: 18px;
    }

    .aq-image-option img {
        height: 148px;
    }
}

/* === Unlock Result Page === */
.unlock-page {
    z-index: 100000;
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    height: var(--app-height, 100dvh);
    overflow: hidden;
    color: #fff;
    background: #0a0408;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.unlock-page[hidden] {
    display: none;
}

.unlock-page--active {
    opacity: 1;
    transform: translateY(0);
}

.unlock-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(88vw, 398px);
    max-height: calc(var(--app-height, 100dvh) - 36px);
    transform: translate(-50%, -50%);
    padding: clamp(26px, 4.8vh, 36px) clamp(22px, 5.6vw, 32px) clamp(26px, 5vh, 36px);
    border-radius: clamp(28px, 7vw, 38px);
    background: rgba(10, 4, 8, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.48),
        0 12px 36px rgba(225, 29, 72, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    backdrop-filter: blur(18px) saturate(1.12);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    text-align: center;
}

.unlock-top-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.unlock-pill {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 17px;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.unlock-timer {
    min-width: 86px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    color: #ff4d75;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 244, 0.78));
    border: 1px solid rgba(255, 77, 117, 0.38);
    font-size: 18px;
    font-weight: 900;
}

.unlock-title {
    margin: clamp(28px, 5vh, 42px) 0 14px;
    color: #fff;
    font-size: clamp(36px, 9vw, 54px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-shadow: 0 5px 18px rgba(0, 0, 0, 0.36);
}

.unlock-copy {
    margin: 0 auto;
    max-width: 340px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 4.8vw, 23px);
    line-height: 1.45;
    font-weight: 700;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
}

.unlock-stat {
    margin-top: clamp(28px, 5vh, 40px);
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 20px;
    border-radius: 24px;
    color: #fff;
    background: rgba(225, 29, 72, 0.1);
    border: 1px solid rgba(255, 77, 117, 0.28);
    font-size: clamp(18px, 4.8vw, 24px);
    line-height: 1.32;
    font-weight: 900;
}

.unlock-stat strong {
    color: #ff4d75;
    font-size: clamp(34px, 8.5vw, 46px);
    line-height: 1;
}

.unlock-app {
    margin: clamp(26px, 5vh, 38px) auto 0;
    display: grid;
    place-items: center;
    gap: 14px;
}

.unlock-app-icon {
    width: 96px;
    height: 96px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 52px;
    font-weight: 900;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 45%),
        linear-gradient(135deg, #ec4899, #ff3f5f);
    box-shadow:
        0 22px 46px rgba(225, 29, 72, 0.38),
        0 0 42px rgba(236, 72, 153, 0.28);
}

.unlock-blur-line {
    width: min(78%, 300px);
    height: 30px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent),
        rgba(255, 255, 255, 0.1);
    filter: blur(4px);
}

.unlock-blur-line--two {
    width: min(48%, 190px);
    height: 26px;
    margin-top: -10px;
}

.unlock-cta {
    width: 100%;
    min-height: 68px;
    margin-top: clamp(28px, 5vh, 40px);
    border-radius: 999px;
    cursor: pointer;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 50%),
        linear-gradient(135deg, #ec4899 0%, #ff3f5f 100%);
    box-shadow:
        0 16px 42px rgba(225, 29, 72, 0.48),
        inset 0 1px rgba(255, 255, 255, 0.3);
    font-size: clamp(22px, 5.8vw, 31px);
    font-weight: 900;
    transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s;
}

.unlock-cta:active {
    transform: scale(0.975);
}

.unlock-cta:disabled {
    cursor: wait;
    opacity: 0.76;
}

@media (max-width: 380px), (max-height: 700px) {
    .unlock-card {
        width: min(90vw, 376px);
        padding: 22px 20px 24px;
    }

    .unlock-top-row {
        gap: 8px;
    }

    .unlock-pill {
        min-height: 38px;
        padding: 0 14px;
        font-size: 15px;
    }

    .unlock-timer {
        min-width: 74px;
        min-height: 38px;
        font-size: 16px;
    }

    .unlock-stat {
        min-height: 72px;
        padding: 14px 16px;
    }

    .unlock-app-icon {
        width: 78px;
        height: 78px;
        border-radius: 24px;
        font-size: 42px;
    }

    .unlock-cta {
        min-height: 58px;
    }
}

/* === Myloveday Second Page === */
.md-page {
    z-index: 100001;
    background: #120b12;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    height: var(--app-height, 100dvh);
    overflow: hidden;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.md-page[hidden] {
    display: none;
}

.md-page--active {
    opacity: 1;
    transform: translateY(0);
}

.md-screen {
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #120b12;
}

.md-canvas {
    width: 100%;
    max-width: 430px;
    width: min(100vw, 430px);
    height: 100vh;
    height: 100dvh;
    height: var(--app-height, 100dvh);
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(180deg, #351018 0%, #1c1018 46%, #080508 100%);
    box-shadow: 0 18px 70px rgba(20, 10, 18, 0.42);
}

.md-canvas::after {
    content: "";
    pointer-events: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
            rgba(5, 3, 5, 0.1) 0%,
            rgba(5, 3, 5, 0.35) 38%,
            rgba(5, 3, 5, 0.6) 66%,
            rgba(5, 3, 5, 0.92) 100%);
}

.md-gallery {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    overflow: hidden;
    opacity: 0.9;
    pointer-events: none;
}

.md-gallery-track {
    --md-gallery-gap: 4px;
    --md-gallery-card-height: clamp(320px, 58vh, 390px);
    height: calc(100% + var(--md-gallery-card-height));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0;
}

.md-gallery-column {
    display: flex;
    flex-direction: column;
    gap: var(--md-gallery-gap);
    animation: md-gallery-scroll 24s linear infinite;
    will-change: transform;
}

.md-gallery-column--right {
    transform: translateY(calc(var(--md-gallery-card-height) * -0.5));
    animation-name: md-gallery-scroll-offset;
}

.md-profile {
    position: relative;
    overflow: hidden;
    height: var(--md-gallery-card-height);
    min-height: 320px;
    flex: 0 0 var(--md-gallery-card-height);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.1)),
        linear-gradient(135deg, #7f1d1d, #be3455);
    background-size: cover;
    background-position: center;
}

.md-profile::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.6) 100%);
}

.md-profile--rose {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.18)),
        linear-gradient(135deg, #b4233f 0%, #f16b62 48%, #633348 100%);
}

.md-profile--gold {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.18)),
        linear-gradient(135deg, #c58b31 0%, #f0c46a 45%, #4c2d22 100%);
}

.md-profile--violet {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.2)),
        linear-gradient(135deg, #5b2e91 0%, #dc4a78 55%, #25153f 100%);
}

.md-profile--teal {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.18)),
        linear-gradient(135deg, #0f766e 0%, #38bdf8 46%, #2b1b4f 100%);
}

.md-profile--photo-one {
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.24)),
        url("assets/images/profiles/profile-01.jpeg");
}

.md-profile--photo-two {
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.24)),
        url("assets/images/profiles/profile-02.jpeg");
}

.md-profile--photo-three {
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.24)),
        url("assets/images/profiles/profile-03.jpeg");
}

.md-profile--photo-four {
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.24)),
        url("assets/images/profiles/profile-04.jpeg");
}

.md-profile--photo-five {
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.24)),
        url("assets/images/profiles/profile-05.jpeg");
}

.md-profile--photo-six {
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.24)),
        url("assets/images/profiles/profile-06.jpeg");
}

.md-badge {
    color: #fff;
    background: #e12b2b;
    border-radius: 8px;
    padding: 3px 10px;
    position: absolute;
    top: 16px;
    left: 14px;
    z-index: 2;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
}

.md-avatar {
    width: 104px;
    height: 146px;
    position: absolute;
    left: 50%;
    bottom: 48px;
    z-index: 1;
    transform: translateX(-50%);
    border-radius: 46% 46% 34% 34%;
    background:
        radial-gradient(circle at 50% 19%, #f3c6a9 0 17px, transparent 18px),
        radial-gradient(ellipse at 50% 78%, rgba(255, 255, 255, 0.9) 0 44px, transparent 45px),
        linear-gradient(180deg, #2a2030 28%, #f6f0f5 29% 100%);
    filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.3));
}

.md-avatar::before {
    content: "";
    width: 44px;
    height: 42px;
    border-radius: 50% 50% 44% 44%;
    background: #392431;
    position: absolute;
    top: 0;
    left: 30px;
}

.md-avatar::after {
    content: "";
    position: absolute;
    width: 78px;
    height: 76px;
    left: 13px;
    bottom: 0;
    border-radius: 40% 40% 8px 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.24));
}

.md-avatar--two {
    transform: translateX(-50%) scale(0.92);
}

.md-avatar--three {
    transform: translateX(-50%) scale(0.9) rotate(-4deg);
}

.md-avatar--four {
    transform: translateX(-50%) scale(1.04) rotate(3deg);
}

.md-status {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    bottom: 76px;
    z-index: 2;
    transform: translateX(-50%);
    background: rgba(176, 40, 40, 0.82);
    border: 2px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
}

.md-status::before {
    content: "";
    width: 12px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-top: 0;
    border-radius: 0 0 9px 9px;
    position: absolute;
    top: 11px;
    left: 11px;
}

.md-status::after {
    content: "";
    width: 3px;
    height: 11px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.8);
    position: absolute;
    top: 7px;
    left: 17px;
}

.md-name {
    display: block;
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    color: #fff;
    margin: 0;
    font-size: 15px;
    font-weight: 900;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}

@keyframes md-gallery-scroll {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(calc(-3 * (var(--md-gallery-card-height) + var(--md-gallery-gap))));
    }
}

@keyframes md-gallery-scroll-offset {
    from {
        transform: translateY(calc(var(--md-gallery-card-height) * -0.5));
    }

    to {
        transform: translateY(calc((-3 * (var(--md-gallery-card-height) + var(--md-gallery-gap))) - (var(--md-gallery-card-height) * 0.5)));
    }
}

.md-hero,
.md-feature-strip,
.md-bottom {
    z-index: 2;
}

.md-hero {
    position: relative;
}

.md-hero {
    padding: 38px 24px 0 70px;
    background: linear-gradient(180deg, rgba(8, 4, 7, 0.38), rgba(8, 4, 7, 0));
}

.md-logo {
    color: #ff4b63;
    margin: 0;
    font-size: 50px;
    font-weight: 900;
    font-style: italic;
    line-height: 0.95;
    text-shadow: 0 7px 12px rgba(0, 0, 0, 0.36);
}

.md-login-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    width: calc(100% + 60px);
    margin-top: 24px;
    margin-left: -48px;
}

.md-login-row>*+* {
    margin-left: 14px;
}

@supports (gap: 14px) {
    .md-login-row>*+* {
        margin-left: 0;
    }
}

.md-icon {
    width: 86px;
    height: 86px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff7b8d, #ff354b);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.md-login-row p {
    color: #fff;
    margin: 0;
    font-size: 20px;
    line-height: 1.32;
    font-weight: 800;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.48);
}

.md-feature-strip {
    position: absolute;
    right: 0;
    bottom: 146px;
    left: 0;
    display: flex;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
}

.md-feature-track {
    --md-card-width: 156px;
    --md-card-gap: 12px;
    display: flex;
    gap: var(--md-card-gap);
    width: max-content;
    padding-left: 18px;
    animation: md-feature-scroll 24s linear infinite;
    will-change: transform;
}

.md-feature-track>*+* {
    margin-left: var(--md-card-gap);
}

@supports (gap: var(--md-card-gap)) {
    .md-feature-track>*+* {
        margin-left: 0;
    }
}

.md-mini-card {
    width: var(--md-card-width);
    height: 248px;
    flex: 0 0 auto;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(18, 8, 13, 0.92);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.32);
}

.md-mini-card::before {
    content: "";
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    background: var(--md-card-photo), linear-gradient(135deg, #7f1d1d, #be3455);
    background-size: cover;
    background-position: center 38%;
}

.md-mini-card--photo-one {
    --md-card-photo: url("assets/images/cards/card-01.jpeg");
}

.md-mini-card--photo-two {
    --md-card-photo: url("assets/images/cards/card-02.jpeg");
}

.md-mini-card--photo-three {
    --md-card-photo: url("assets/images/cards/card-03.jpeg");
}

.md-mini-card--photo-four {
    --md-card-photo: url("assets/images/cards/card-04.jpeg");
}

.md-mini-card--photo-five {
    --md-card-photo: url("assets/images/cards/card-05.jpeg");
}

.md-mini-card--photo-six {
    --md-card-photo: url("assets/images/cards/card-06.jpeg");
}

.md-mini-card--peek {}

.md-mini-card--two {
    color: #fff;
}

.md-mini-card p {
    color: #fff1f4;
    margin: 0;
    height: 76px;
    flex: 0 0 76px;
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    line-height: 1.14;
    font-weight: 800;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: normal;
    background: linear-gradient(180deg, rgba(255, 75, 99, 0.2), rgba(8, 4, 7, 0.82));
}

.md-mini-card p br {
    display: none;
}

.md-mini-card p span,
.md-mini-card p strong {
    display: block;
    max-width: 100%;
}

.md-mini-card p span:empty {
    display: none;
}

.md-mini-card strong span {
    display: inline;
}

.md-mini-card strong {
    font-style: italic;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

:lang(hi) .md-mini-card p,
:lang(id) .md-mini-card p {
    font-size: 14px;
    line-height: 1.18;
}

@keyframes md-feature-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-6 * (var(--md-card-width) + var(--md-card-gap))));
    }
}

.md-phone {
    width: 96px;
    height: 136px;
    border: 4px solid #fff;
    border-radius: 18px;
    background: #f9f0f3;
    position: absolute;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 18px 7px 8px;
}

.md-phone span {
    margin: 2px;
}

@supports (gap: 5px) {
    .md-phone span {
        margin: 0;
    }
}

.md-phone span,
.md-phone--profile div,
.md-chat span {
    border-radius: 8px;
    background: linear-gradient(135deg, #ffd6ba, #f06b74);
}

.md-phone span:nth-child(2) {
    background: linear-gradient(135deg, #bde8ff, #4f8ec8);
}

.md-phone span:nth-child(3) {
    background: linear-gradient(135deg, #d8ffd5, #47a987);
}

.md-phone span:nth-child(4) {
    background: linear-gradient(135deg, #ffe1ef, #9d5bd4);
}

.md-phone--profile {
    display: block;
    padding: 14px;
}

.md-phone--profile div {
    width: 100%;
    height: 100%;
}

.md-chat {
    width: 110px;
    height: 126px;
    border: 4px solid #fff;
    border-radius: 18px 18px 0 0;
    background: #f5eef0;
    position: absolute;
    left: 50%;
    bottom: -9px;
    transform: translateX(-50%);
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.md-chat span+span {
    margin-top: 9px;
}

@supports (gap: 9px) {
    .md-chat span+span {
        margin-top: 0;
    }
}

.md-chat span {
    width: 70%;
    height: 18px;
}

.md-chat span:nth-child(2) {
    width: 86%;
    align-self: flex-end;
    background: linear-gradient(135deg, #d9f99d, #22c55e);
}

.md-chat span:nth-child(3) {
    width: 58%;
}

.md-bottom {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    padding: 0 28px 4px;
    padding: 0 28px max(4px, env(safe-area-inset-bottom));
    pointer-events: auto;
}

.md-reward {
    color: #ff91a2;
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    margin: 0 auto;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 75, 99, 0.72);
    background: rgba(10, 5, 8, 0.68);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(255, 75, 99, 0.18);
}

.md-reward small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82em;
    font-weight: 800;
}

.md-reward>*+* {
    margin-left: 10px;
}

@supports (gap: 10px) {
    .md-reward>*+* {
        margin-left: 0;
    }
}

.md-login {
    width: 100%;
    min-height: 76px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #ff8ba0 0%, #ff3f58 100%);
    cursor: pointer;
    font-size: 24px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow:
        0 18px 42px rgba(255, 65, 88, 0.5),
        inset 0 2px rgba(255, 255, 255, 0.28);
}

.md-login:active {
    transform: scale(0.985);
}

.md-note {
    color: rgba(255, 255, 255, 0.42);
    text-align: center;
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 600;
}

/* === Third Auth Modal Demo === */
.auth-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 100004;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    color: #fff;
}

.auth-modal[hidden] {
    display: none;
}

.auth-backdrop-open .md-canvas {
    filter: brightness(0.6);
}

.auth-modal-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}

.auth-dialog {
    width: 100%;
    max-width: 430px;
    width: min(430px, 100%);
    min-height: 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 44px 0 0;
}

.auth-dialog>*+* {
    margin-top: 18px;
}

@supports (gap: 18px) {
    .auth-dialog>*+* {
        margin-top: 0;
    }
}

.auth-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.auth-close:active {
    transform: scale(0.96);
}

.auth-copy {
    text-align: center;
    padding: 0 48px;
}

.auth-copy h2 {
    margin: 0;
    font-size: 24px;
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.3;
    font-weight: 900;
}

.auth-copy p {
    color: rgba(255, 255, 255, 0.68);
    margin: 10px 0 0;
    font-size: 16px;
    font-size: clamp(15px, 2.2vw, 18px);
    font-weight: 700;
}

.auth-card {
    width: 100%;
    min-height: 0;
    position: relative;
    border-radius: 24px;
    border: 2px solid rgba(255, 74, 98, 0.56);
    background:
        linear-gradient(90deg, rgba(255, 77, 96, 0.25), rgba(42, 12, 17, 0.72)),
        rgba(38, 10, 16, 0.8);
    padding: 26px 1.5%;
    box-shadow: inset 0 0 80px rgba(255, 75, 99, 0.08);
}

.auth-label {
    display: block;
    text-align: center;
    color: #fff;
    margin-bottom: 18px;
    font-size: 18px;
    font-size: clamp(17px, 2.4vw, 21px);
    line-height: 1.25;
    font-weight: 900;
}

.auth-input-row {
    width: 100%;
    margin: 0 auto;
    min-height: 64px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(8, 5, 8, 0.45);
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    overflow: hidden;
}

.auth-code {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-right: 2px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

.auth-code>*+* {
    margin-left: 8px;
}

@supports (gap: 8px) {
    .auth-code>*+* {
        margin-left: 0;
    }
}

.auth-flag {
    width: 32px;
    height: 22px;
    border-radius: 5px;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #1538a8 0 25%, #d61f35 25% 75%, #1538a8 75% 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.auth-flag::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 6px;
    left: 12px;
    top: 8px;
    border-radius: 2px 2px 0 0;
    background: #fff;
}

.auth-flag--emoji {
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
}

.auth-flag--emoji::after {
    display: none;
}

.auth-flag--jp {
    background: #fff;
}

.auth-flag--jp::after {
    width: 10px;
    height: 10px;
    left: 11px;
    top: 6px;
    border-radius: 50%;
    background: #dc2626;
}

.auth-flag--sg {
    background: linear-gradient(180deg, #ef4444 0 50%, #fff 50% 100%);
}

.auth-flag--sg::after {
    width: 8px;
    height: 8px;
    left: 7px;
    top: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 5px 0 0 -1px #ef4444;
}

.auth-flag--us {
    background: repeating-linear-gradient(180deg, #ef4444 0 2px, #fff 2px 4px);
}

.auth-flag--us::after {
    width: 15px;
    height: 11px;
    left: 0;
    top: 0;
    border-radius: 0;
    background: #1d4ed8;
}

.auth-input {
    width: 100%;
    min-width: 0;
    color: #fff;
    background: transparent;
    border: 0;
    outline: none;
    padding: 0 18px;
    font: inherit;
    font-size: 18px;
    font-size: clamp(17px, 2.5vw, 21px);
    font-weight: 800;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.country-menu {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 0;
    z-index: 100007;
    width: min(100vw, 430px);
    height: 92vh;
    height: 92dvh;
    padding: 18px 0 max(14px, env(safe-area-inset-bottom));
    overflow: hidden;
    transform: translateX(-50%);
    border-radius: 28px 28px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 0;
    background:
        linear-gradient(180deg, rgba(45, 10, 18, 0.98), rgba(14, 6, 11, 0.99)),
        rgba(20, 8, 13, 0.98);
    box-shadow:
        0 -24px 80px rgba(0, 0, 0, 0.65),
        0 -10px 40px rgba(255, 75, 99, 0.16);
    display: flex;
    flex-direction: column;
}

.country-menu[hidden] {
    display: none;
}

.country-menu::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    width: 48px;
    height: 5px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.26);
}

.country-header {
    width: 100%;
    min-height: 50px;
    padding: 14px 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex: 0 0 auto;
}

.country-header h3 {
    color: #fff;
    margin: 0;
    min-width: 0;
    text-align: left;
    font-size: 16px;
    font-weight: 900;
}

.country-close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
}

.country-close:active {
    transform: scale(0.96);
}

.country-search {
    width: calc(100% - 32px);
    height: 50px;
    margin: 12px 16px 10px;
    padding: 0 16px;
    flex: 0 0 auto;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    outline: none;
    font-size: 16px;
    font-weight: 800;
}

.country-search::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.country-options {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 10px 10px;
}

.country-option {
    width: 100%;
    min-height: 58px;
    padding: 0 14px;
    color: #fff;
    background: transparent;
    border: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-radius: 16px;
    text-align: left;
    cursor: pointer;
}

.country-option+.country-option {
    margin-top: 4px;
}

.country-option:hover,
.country-option[aria-selected="true"] {
    background: rgba(255, 77, 96, 0.18);
}

.country-option span:not(.auth-flag) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 800;
}

.country-option strong {
    color: #ff9cad;
    font-size: 16px;
    font-weight: 900;
}

.country-empty {
    color: rgba(255, 255, 255, 0.58);
    margin: 0;
    padding: 24px 16px;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
}

.auth-hint {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.auth-submit {
    width: 100%;
    min-height: 64px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #ff6f86 0%, #f3264a 52%, #c91236 100%);
    cursor: pointer;
    font-size: 22px;
    font-size: clamp(20px, 3vw, 25px);
    font-weight: 900;
    box-shadow:
        0 16px 42px rgba(255, 49, 78, 0.44),
        inset 0 2px rgba(255, 255, 255, 0.26);
}

.auth-submit:active {
    transform: scale(0.985);
}

.success-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 100006;
    transform: translate(-50%, -50%);
    min-width: 210px;
    min-height: 84px;
    padding: 0 28px;
    border-radius: 24px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 77, 96, 0.36), rgba(40, 8, 15, 0.94)),
        rgba(22, 8, 13, 0.94);
    border: 2px solid rgba(255, 74, 98, 0.58);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 900;
    box-shadow:
        0 22px 64px rgba(0, 0, 0, 0.5),
        0 10px 34px rgba(255, 75, 99, 0.24),
        inset 0 1px rgba(255, 255, 255, 0.12);
}

.success-toast[hidden] {
    display: none;
}

.success-toast-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #ff8ba0, #ff3f58);
    box-shadow: 0 8px 20px rgba(255, 75, 99, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
}

.md-back {
    color: #fff;
    background: rgba(10, 4, 8, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 14px;
    top: max(14px, env(safe-area-inset-top));
    left: 14px;
    z-index: 4;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.md-back:active {
    transform: scale(0.96);
}

/* === Background === */
.sp-bg {
    pointer-events: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
}

.sp-bg-grad {
    background: radial-gradient(at 70% -10%, #e11d486b 0%, #0000 55%),
        radial-gradient(at 20% 80%, #e11d4820 0%, #0000 50%),
        radial-gradient(at 90% 70%, #7c2d4b20 0%, #0000 45%);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
}

.sp-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.sp-bg-orb--1 {
    background: #e11d48;
    width: 280px;
    height: 280px;
    top: -80px;
    right: -60px;
    opacity: 0.25;
}

.sp-bg-orb--2 {
    background: #e11d48;
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: -80px;
    opacity: 0.15;
}

.sp-bg-orb--3 {
    background: #7c2d4b;
    width: 180px;
    height: 180px;
    bottom: 30%;
    right: -40px;
    opacity: 0.12;
}

/* === Particles === */
.sp-particle {
    position: absolute;
    border-radius: 50%;
    background: #ff6b8a;
    opacity: 0.5;
    animation: particle-float 5s ease-in-out infinite;
}

@keyframes particle-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) scale(1.3);
        opacity: 0.7;
    }
}

/* === Banner / Header === */
.sp-banner {
    padding: 34px 24px 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.sp-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sp-banner-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-banner-logo>*+* {
    margin-left: 8px;
}

@supports (gap: 8px) {
    .sp-banner-logo>*+* {
        margin-left: 0;
    }
}

.sp-banner-logo-svg {
    width: 38px;
    height: 38px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sp-banner-brand {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
}

.sp-banner-online {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 8px 13px 8px 10px;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.sp-banner-online>*+* {
    margin-left: 6px;
}

@supports (gap: 6px) {
    .sp-banner-online>*+* {
        margin-left: 0;
    }
}

.sp-banner-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: dot-blink 2s ease-in-out infinite;
}

@keyframes dot-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.sp-banner-count {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.sp-banner-label,
.sp-banner-unit {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    font-weight: 700;
}

/* === Main Content === */
.sp-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(18px, env(safe-area-inset-top, 0)) 18px max(18px, env(safe-area-inset-bottom, 0));
    position: relative;
    z-index: 2;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sp-panel {
    width: min(92vw, 390px);
    max-height: calc(var(--app-height, 100dvh) - 36px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(24px, 5.6vh, 42px) clamp(18px, 5vw, 28px);
    border-radius: clamp(28px, 7vw, 38px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
        linear-gradient(135deg, rgba(254, 78, 96, 0.18), rgba(120, 35, 75, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.42),
        0 12px 36px rgba(225, 29, 72, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* === Hero Image / Emblem === */
.sp-hero {
    position: relative;
    width: 96px;
    height: 96px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-hero-ring {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(254, 78, 96, 0.2);
    animation: ring-pulse 3s ease-in-out infinite;
}

@keyframes ring-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.12);
        opacity: 0.15;
    }
}

.sp-hero-image {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(254, 78, 96, 0.2) 0%, rgba(216, 18, 59, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(254, 78, 96, 0.15);
}

.sp-hero-svg {
    width: 36px;
    height: 36px;
    animation: emblem-pulse 3s ease-in-out infinite;
}

@keyframes emblem-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.sp-hero-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(254, 78, 96, 0.1);
    animation: hero-pulse-ring 3s ease-in-out infinite 0.5s;
}

@keyframes hero-pulse-ring {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.25);
        opacity: 0;
    }
}

/* === Title === */
.sp-title {
    text-align: center;
    margin: 0;
      line-height: 1.12;
      font-size: clamp(34px, 9vw, 42px);
    font-weight: 800;
    letter-spacing: 0;
      text-wrap: balance;
      hyphens: auto;
      max-width: 340px;
}

.sp-title-line1 {
    display: block;
    color: #fff;
}

.sp-title-line2 {
    display: block;
    background: linear-gradient(135deg, #ff4d75 0%, #d8123b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Subtitle === */
.sp-subtitle {
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    margin: 14px 0 0;
      font-size: clamp(15px, 4.2vw, 17px);
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0.1px;
    max-width: 370px;
      text-wrap: balance;
      hyphens: auto;
}

/* === Live Counter === */
.sp-live {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 100px;
    padding: 8px 18px 8px 8px;
    margin-top: 28px;
    margin-bottom: 26px;
}

.sp-live>*+* {
    margin-left: 10px;
}

@supports (gap: 10px) {
    .sp-live>*+* {
        margin-left: 0;
    }
}

.sp-live-avatars {
    display: flex;
    align-items: center;
}

.sp-live-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid #0a0408;
    margin-left: -6px;
}

.sp-live-avatar:first-child {
    margin-left: 0;
}

.sp-live-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
      white-space: normal;
      line-height: 1.25;
      hyphens: auto;
}

.sp-live-text strong {
    color: #fff;
    font-weight: 700;
}

/* === Features === */
.sp-features {
    display: flex;
    justify-content: center;
    gap: 10px;
      flex-wrap: wrap;
    width: 100%;
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
}

.sp-features>*+* {
    margin-left: 10px;
}

@supports (gap: 10px) {
    .sp-features>*+* {
        margin-left: 0;
    }
}

.sp-feature {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05)),
        linear-gradient(135deg, rgba(255, 73, 96, 0.95), rgba(255, 138, 80, 0.86));
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 10px 13px;
    box-shadow:
        0 10px 26px rgba(254, 78, 96, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    overflow: hidden;
    animation: feature-pop 2.8s ease-in-out infinite;
}

.sp-feature:nth-child(2) {
    animation-delay: 0.18s;
}

.sp-feature:nth-child(3) {
    animation-delay: 0.36s;
}

.sp-feature::after {
    content: "";
    position: absolute;
    top: -60%;
    bottom: -60%;
    left: -45%;
    width: 38%;
    transform: rotate(22deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
    animation: feature-shine 3.2s ease-in-out infinite;
}

.sp-feature:nth-child(2)::after {
    animation-delay: 0.38s;
}

.sp-feature:nth-child(3)::after {
    animation-delay: 0.76s;
}

.sp-feature>*+* {
    margin-left: 6px;
}

@supports (gap: 6px) {
    .sp-feature>*+* {
        margin-left: 0;
    }
}

.sp-feature-icon {
    position: relative;
    z-index: 1;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 5px rgba(70, 0, 16, 0.35));
}

.sp-feature-icon path,
.sp-feature-icon polyline,
.sp-feature-icon rect {
    stroke: #fff;
}

.sp-feature-text {
    position: relative;
    z-index: 1;
    color: #fff;
      font-size: clamp(13px, 3.6vw, 15px);
    font-weight: 900;
    letter-spacing: 0.02em;
      white-space: normal;
      text-align: center;
      line-height: 1.1;
      hyphens: auto;
    text-shadow: 0 2px 8px rgba(70, 0, 16, 0.42);
}

@keyframes feature-pop {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow:
            0 10px 26px rgba(254, 78, 96, 0.32),
            inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }

    50% {
        transform: translateY(-1px) scale(1.035);
        box-shadow:
            0 14px 34px rgba(254, 78, 96, 0.48),
            inset 0 1px 0 rgba(255, 255, 255, 0.45);
    }
}

@keyframes feature-shine {
    0%, 42% {
        left: -45%;
        opacity: 0;
    }

    52% {
        opacity: 1;
    }

    70%, 100% {
        left: 120%;
        opacity: 0;
    }
}

/* === CTA Button === */
.sp-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 370px;
      min-height: 68px;
      height: auto;
    margin-top: 36px;
      padding: 14px 18px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.18s;
    animation: cta-glow 2.4s ease-in-out infinite;
    box-shadow: 0 14px 36px rgba(225, 29, 72, 0.5),
        0 4px 12px rgba(225, 29, 72, 0.4),
        inset 0 1px rgba(255, 255, 255, 0.3);
}

@keyframes cta-glow {

    0%,
    100% {
        box-shadow: 0 14px 36px rgba(225, 29, 72, 0.5),
            0 4px 12px rgba(225, 29, 72, 0.4),
            inset 0 1px rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow: 0 18px 48px rgba(225, 29, 72, 0.7),
            0 6px 16px rgba(225, 29, 72, 0.55),
            inset 0 1px rgba(255, 255, 255, 0.35);
    }
}

.sp-cta:active {
    transform: scale(0.975);
}

.sp-cta:disabled,
.md-login:disabled,
.auth-submit:disabled {
    cursor: wait;
    opacity: 0.78;
}

.sp-cta.is-loading .sp-cta-arrow {
    display: none;
}

.sp-cta-bg {
    background: linear-gradient(135deg, #ff4d75 0%, #d8123b 100%);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
}

.sp-cta-shine {
    background: linear-gradient(rgba(255, 255, 255, 0.22) 0%, transparent 50%);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
}

.sp-cta-text {
    color: #fff;
      font-size: clamp(18px, 4.6vw, 20px);
    font-size: 20px;
    font-weight: 800;
    position: relative;
      white-space: normal;
      line-height: 1.15;
      text-align: center;
      hyphens: auto;
    white-space: nowrap;
}

.sp-cta-arrow {
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    animation: arrow-slide 1.4s ease-in-out infinite;
    display: flex;
    position: relative;
}

.sp-cta-arrow svg {
    width: 20px;
    height: 20px;
}

@keyframes arrow-slide {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(4px);
    }
}

/* === Hint === */
.sp-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
}

.sp-hint>*+* {
    margin-left: 6px;
}

@supports (gap: 6px) {
    .sp-hint>*+* {
        margin-left: 0;
    }
}

.sp-hint-dot {
    background: #ff6b8a;
    border-radius: 50%;
    width: 6px;
    height: 6px;
    animation: hint-blink 1.4s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255, 107, 138, 0.7);
}

@keyframes hint-blink {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.7);
    }
}

.sp-hint-text {
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.2px;
    font-size: 14px;
    font-weight: 600;
}

/* === Footer === */
.sp-footer {
    flex-shrink: 0;
    padding: 4px 0 max(8px, env(safe-area-inset-bottom, 0));
    position: relative;
    z-index: 2;
}

.sp-legal {
    color: rgba(255, 255, 255, 0.32);
    max-width: 390px;
    margin: 0 auto;
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

.sp-legal strong {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.sp-legal-link {
    font: inherit;
    color: rgba(255, 255, 255, 0.7);
    text-underline-offset: 2px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline;
    transition: color 0.2s;
}

.sp-legal-link:hover,
.sp-legal-link:focus,
.sp-legal-link:focus-visible {
    color: #ff8aa2;
    outline: none;
}

/* === Bottom Sheet Modal === */
.sp-sheet-mask {
    z-index: 100000;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: flex-end;
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    animation: sheet-fade-in 0.25s ease-out;
}

@keyframes sheet-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.sp-sheet {
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    padding-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: linear-gradient(#1d0a14 0%, #15060e 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px 22px 0 0;
    flex-direction: column;
    display: flex;
    box-shadow: 0 -24px 64px rgba(0, 0, 0, 0.6);
    animation: sheet-slide-up 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sheet-slide-up {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.sp-sheet-handle {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    width: 38px;
    height: 4px;
    margin: 10px auto 4px;
}

.sp-sheet-head {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px 12px;
    display: flex;
}

.sp-sheet-title {
    color: #fff;
    letter-spacing: 0;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.sp-sheet-close {
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    transition: background 0.2s;
    display: flex;
}

.sp-sheet-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.sp-sheet-body {
    -webkit-overflow-scrolling: touch;
    color: rgba(255, 255, 255, 0.78);
    flex: 1;
    padding: 18px 22px 8px;
    font-size: 13.5px;
    line-height: 1.65;
    overflow-y: auto;
}

.sp-sheet-meta {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 14px;
    font-size: 11.5px;
}

.sp-sheet-body h3 {
    color: #fff;
    margin: 16px 0 6px;
    font-size: 14px;
    font-weight: 700;
}

.sp-sheet-body h3:first-of-type {
    margin-top: 0;
}

.sp-sheet-body p {
    margin: 0 0 10px;
}

.sp-mail {
    color: #ff8aa2;
    font-weight: 600;
}

.sp-sheet-foot {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 22px 18px;
}

.sp-sheet-ok {
    color: #fff;
    letter-spacing: 0.2px;
    cursor: pointer;
    background: linear-gradient(135deg, #ff4d75 0%, #d8123b 100%);
    border: none;
    border-radius: 12px;
    width: 100%;
    height: 46px;
    font-size: 14.5px;
    font-weight: 700;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.4);
}

.sp-sheet-ok:active {
    transform: scale(0.98);
}

/* === Responsive: Short screens === */
@media (max-height: 740px) {
    .md-hero {
        padding-top: 28px;
    }

    .md-logo {
        font-size: 42px;
    }

    .md-login-row {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 14px;
        margin-top: 14px;
        margin-left: -42px;
    }

    .md-icon {
        width: 70px;
        height: 70px;
    }

    .md-login-row p {
        font-size: 16px;
        line-height: 1.24;
    }

    .md-feature-strip {
        bottom: 116px;
    }

    .md-feature-track {
        --md-card-width: 132px;
        --md-card-gap: 10px;
        padding-left: 14px;
    }

    .md-mini-card {
        height: 176px;
    }

    .md-mini-card p {
        height: 58px;
        flex-basis: 58px;
        padding: 7px 9px 8px;
        font-size: 13px;
        line-height: 1.12;
    }

    :lang(hi) .md-mini-card p,
    :lang(id) .md-mini-card p {
        font-size: 12px;
    }

    .md-bottom {
        bottom: 0;
    }

    .md-reward {
        min-height: 36px;
        padding: 0 16px;
        font-size: 14px;
    }

    .md-login {
        min-height: 58px;
        font-size: 19px;
    }

    .md-note {
        margin-top: 4px;
    }

    .sp-panel {
        width: min(94vw, 370px);
        max-height: calc(var(--app-height, 100dvh) - 20px);
        padding: 18px 16px 20px;
    }

    .sp-title {
          font-size: clamp(28px, 8.6vw, 32px);
          max-width: 320px;
    }

    .sp-hero {
        width: 72px;
        height: 72px;
        margin-bottom: 18px;
    }

    .sp-hero-image {
        width: 58px;
        height: 58px;
    }

    .sp-hero-svg {
        width: 28px;
        height: 28px;
    }

    .sp-subtitle {
          font-size: clamp(12.5px, 3.9vw, 14px);
          line-height: 1.5;
    }

    .sp-features {
        margin-top: 18px;
    }

    .sp-live {
        margin-bottom: 14px;
        padding: 6px 12px 6px 6px;
    }

    .sp-live-avatar {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .sp-cta {
          min-height: 52px;
          height: auto;
          padding: 12px 16px;
        margin-top: 20px;
    }

    .sp-hint {
        margin-top: 10px;
    }
}

@media (max-height: 620px) {
    .sp-main {
        padding: 10px 12px;
    }

    .sp-panel {
        width: min(96vw, 360px);
        max-height: calc(var(--app-height, 100dvh) - 20px);
        padding: 14px 14px 16px;
        border-radius: 24px;
    }

    .sp-hero {
        width: 58px;
        height: 58px;
        margin-bottom: 12px;
    }

    .sp-hero-image {
        width: 48px;
        height: 48px;
    }

    .sp-hero-svg {
        width: 24px;
        height: 24px;
    }

    .sp-title {
          font-size: clamp(24px, 7.6vw, 28px);
          max-width: 320px;
    }

    .sp-subtitle {
        margin-top: 10px;
          font-size: clamp(12px, 3.7vw, 13px);
          line-height: 1.48;
    }

    .sp-features {
        margin-top: 14px;
        gap: 6px;
    }

    .sp-feature {
        min-height: 36px;
        padding: 8px 9px;
        gap: 4px;
    }

    .sp-feature-icon {
        width: 14px;
        height: 14px;
    }

    .sp-feature-text {
        font-size: 13px;
    }

    .sp-cta {
          min-height: 48px;
          height: auto;
          padding: 10px 14px;
        margin-top: 16px;
    }

    .sp-cta-text {
          font-size: clamp(16px, 4.4vw, 17px);
    }

    .sp-hint {
        margin-top: 8px;
    }

    .sp-hint-text {
        font-size: 12px;
    }

    .md-hero {
        padding-top: 22px;
    }

    .md-logo {
        font-size: 38px;
    }

    .md-login-row {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 12px;
        margin-top: 10px;
    }

    .md-icon {
        width: 62px;
        height: 62px;
    }

    .md-login-row p {
        font-size: 15px;
    }

    .md-feature-strip {
        bottom: 108px;
    }

    .md-mini-card {
        height: 148px;
    }

    .md-mini-card p {
        height: 48px;
        flex-basis: 48px;
        padding: 5px 8px 6px;
        font-size: 12px;
    }

    :lang(hi) .md-mini-card p,
    :lang(id) .md-mini-card p {
        font-size: 11px;
    }

    .md-bottom {
        padding-right: 24px;
        padding-left: 24px;
    }

    .md-reward {
        min-height: 32px;
        font-size: 13px;
    }

    .md-login {
        min-height: 52px;
        font-size: 17px;
    }

    .md-note {
        margin-top: 4px;
        font-size: 11px;
    }
}


@media (max-width: 360px) {
    .sp-main {
        padding-left: 12px;
        padding-right: 12px;
    }

    .sp-panel {
        width: min(96vw, 350px);
        padding-left: 14px;
        padding-right: 14px;
    }

    .sp-features {
        gap: 6px;
    }

    .sp-feature {
        min-height: 36px;
        padding: 8px 8px;
        gap: 4px;
    }

    .sp-feature-icon {
        width: 14px;
        height: 14px;
    }

    .sp-feature-text {
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .auth-modal {
        padding: 8px;
    }

    .auth-dialog {
        max-width: 96vw;
        width: 96vw;
        gap: 14px;
        padding: 42px 0 0;
    }

    .auth-close {
        width: 42px;
        height: 42px;
    }

    .auth-copy {
        padding: 0;
    }

    .auth-copy h2 {
        font-size: 22px;
    }

    .auth-copy p {
        margin-top: 8px;
        font-size: 15px;
    }

    .auth-card {
        min-height: 0;
        padding: 24px 1.5% 16px;
        border-width: 2px;
        border-radius: 22px;
    }

    .auth-label {
        margin-bottom: 16px;
        font-size: 17px;
    }

    .auth-input-row {
        width: 100%;
        margin: 0 auto;
        min-height: 62px;
        grid-template-columns: 116px minmax(0, 1fr);
        border-radius: 18px;
    }

    .auth-code {
        gap: 8px;
        font-size: 17px;
    }

    .auth-flag {
        width: 32px;
        height: 22px;
    }

    .auth-flag::after {
        width: 8px;
        height: 6px;
        left: 12px;
        top: 8px;
    }

    .auth-input {
        padding: 0 14px;
        font-size: 17px;
    }

    .auth-hint {
        font-size: 12px;
    }

    .auth-submit {
        min-height: 60px;
        font-size: 20px;
    }

    .country-menu {
        width: 100vw;
        height: 93vh;
        height: 93dvh;
        border-radius: 30px 30px 0 0;
        padding-top: 46px;
    }

    .country-search {
        height: 52px;
        margin: 18px 18px 12px;
        width: calc(100% - 36px);
        font-size: 16px;
    }

    .country-options {
        padding: 0 12px 12px;
    }

    .country-option {
        min-height: 60px;
    }
}


/* === Splash structure refinements === */
.sp-status-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: clamp(20px, 4vh, 30px);
}

.sp-status-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    max-width: 100%;
    padding: 0 16px;
    border-radius: 999px;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.sp-status-pill--privacy {
    color: #ffd077;
    background:
        linear-gradient(135deg, rgba(255, 208, 119, 0.13), rgba(255, 255, 255, 0.045));
    border-color: rgba(255, 208, 119, 0.28);
}

.sp-status-pill--timer {
    color: #ff4d75;
    min-width: 112px;
}

.sp-status-icon {
    flex: 0 0 auto;
    font-size: 17px;
    line-height: 1;
}

.sp-features {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    max-width: 330px;
    margin-top: clamp(26px, 4.5vh, 34px);
}

.sp-features>*+* {
    margin-left: 0;
}

.sp-feature {
    width: 100%;
    min-height: 54px;
    justify-content: flex-start;
    gap: 14px;
    padding: 10px 16px;
    border-radius: 20px;
    overflow: visible;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
        linear-gradient(135deg, rgba(255, 73, 96, 0.24), rgba(255, 138, 80, 0.12));
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow:
        0 10px 26px rgba(254, 78, 96, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.sp-feature::after {
    display: none;
}

.sp-feature>*+* {
    margin-left: 0;
}

.sp-feature-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.sp-feature-text {
    min-width: 0;
    white-space: normal;
      overflow-wrap: break-word;
      word-break: normal;
      hyphens: auto;
    line-height: 1.22;
    text-align: left;
    font-size: 18px;
}

.sp-cta {
    max-width: 100%;
      padding: 14px 52px 14px 22px;
}

.sp-cta-text {
      font-size: clamp(18px, 5.2vw, 23px);
      line-height: 1.12;
}

.sp-cta-arrow {
    position: absolute;
    right: 22px;
    z-index: 2;
    width: 28px;
    height: 28px;
    font-size: 22px;
    line-height: 1;
}

.sp-hint {
    justify-content: center;
}

@media (max-height: 740px) {
    .sp-status-row {
        margin-bottom: 16px;
    }

    .sp-status-pill {
        min-height: 36px;
        padding: 0 12px;
        font-size: 15px;
    }

    .sp-status-pill--timer {
        min-width: 92px;
    }

    .sp-features {
        gap: 9px;
        margin-top: 18px;
    }

    .sp-feature {
        min-height: 46px;
        padding: 8px 13px;
        border-radius: 17px;
    }

    .sp-feature-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: 16px;
    }

    .sp-feature-text {
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .sp-status-row {
        gap: 8px;
    }

    .sp-status-pill {
        padding: 0 10px;
        font-size: 14px;
    }

    .sp-status-pill--timer {
        min-width: 82px;
    }

    .sp-feature-text {
        font-size: 14px;
    }

    .sp-cta {
        padding-right: 42px;
        padding-left: 16px;
    }

    .sp-cta-arrow {
        right: 16px;
        font-size: 19px;
    }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {

    .sp-bg-orb,
    .sp-particle,
    .sp-hero-ring,
    .sp-hero-svg,
    .sp-hero-pulse,
    .sp-cta,
    .sp-cta-arrow,
    .sp-hint-dot,
    .sp-banner-dot,
    .mp-bg-track,
    .mp-orb,
    .mp-card::after,
    .mp-progress-fill {
        animation: none !important;
        transition: none !important;
    }

    .sp-sheet {
        animation: none !important;
    }

    .sp-sheet-mask {
        animation: none !important;
    }
}


/* Q4/Q5/Q7: keep every answer visually equal and clearly clickable */
.preference-option,
.age-range-option,
.girl-type-option {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
        linear-gradient(135deg, rgba(255, 77, 117, 0.34), rgba(216, 18, 59, 0.22));
    border: 1px solid rgba(255, 77, 117, 0.34);
    box-shadow:
        0 10px 26px rgba(225, 29, 72, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.preference-option:first-child,
.age-range-option:first-child,
.girl-type-option:first-child {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
        linear-gradient(135deg, rgba(255, 77, 117, 0.34), rgba(216, 18, 59, 0.22));
    border-color: rgba(255, 77, 117, 0.34);
    box-shadow:
        0 10px 26px rgba(225, 29, 72, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Safari privacy handoff page */
.safari-card {
    text-align: center;
    background: rgba(10, 4, 8, 0.78);
}

.safari-title {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 7.8vw, 42px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-shadow: 0 5px 18px rgba(0, 0, 0, 0.36);
}

.safari-lead {
    margin: 18px auto 0;
    max-width: 360px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 4.8vw, 23px);
    line-height: 1.35;
    font-weight: 800;
}

.safari-alert,
.safari-steps {
    margin-top: clamp(26px, 4.8vh, 34px);
    padding: 22px 20px;
    border-radius: 24px;
    text-align: left;
    background:
        linear-gradient(135deg, rgba(255, 77, 117, 0.16), rgba(255, 255, 255, 0.045)),
        rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 77, 117, 0.34);
    box-shadow:
        0 12px 34px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.safari-alert h3,
.safari-steps h3 {
    margin: 0 0 14px;
    color: #ff4d75;
    font-size: clamp(20px, 5.4vw, 28px);
    line-height: 1.2;
    font-weight: 900;
}

.safari-alert p,
.safari-steps p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 4.5vw, 22px);
    line-height: 1.42;
    font-weight: 800;
}

.safari-steps {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.045);
}

.safari-steps h3 {
    color: rgba(255, 255, 255, 0.86);
}

.safari-steps p + p {
    margin-top: 12px;
}

.safari-copy {
    width: 100%;
    min-height: 68px;
    margin-top: clamp(26px, 4.8vh, 36px);
    border-radius: 999px;
    cursor: pointer;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 50%),
        linear-gradient(135deg, #ff3f5f 0%, #ec4899 100%);
    box-shadow:
        0 16px 42px rgba(225, 29, 72, 0.48),
        inset 0 1px rgba(255, 255, 255, 0.3);
    font-size: clamp(21px, 5.7vw, 31px);
    font-weight: 900;
    transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s;
}

.safari-copy:active {
    transform: scale(0.975);
}

@media (max-width: 380px), (max-height: 700px) {
    .safari-alert,
    .safari-steps {
        padding: 18px 16px;
        border-radius: 20px;
    }

    .safari-copy {
        min-height: 58px;
    }
}

/* Butt image confirmation flow */
.butt-image-grid {
    transition: grid-template-columns 0.22s ease, gap 0.22s ease;
}

.butt-option {
    font-size: 0;
    line-height: 0;
}

.butt-option span {
    display: none !important;
}

.butt-option--selected {
    grid-column: 1 / -1;
    min-height: min(46vh, 420px);
    border-color: rgba(255, 77, 117, 0.62);
    box-shadow:
        0 18px 42px rgba(225, 29, 72, 0.32),
        0 0 0 2px rgba(255, 77, 117, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transform: none !important;
}

.butt-option--selected img {
    height: min(46vh, 420px);
}

.butt-option--dimmed {
    display: none;
}

.butt-confirm-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
    margin-top: 22px;
}

.aq-page--image-selected .aq-title {
    margin: 18px 0 10px;
    max-width: 10ch;
    font-size: clamp(24px, 6.3vw, 34px);
    line-height: 1.04;
    text-wrap: unset;
    hyphens: none;
}

.aq-page--image-selected .aq-copy {
    max-width: 16ch;
    font-size: clamp(15px, 4vw, 20px);
    line-height: 1.28;
    text-wrap: unset;
    hyphens: none;
}

.aq-page--image-selected .butt-confirm-actions {
    margin-top: 20px;
}

.butt-confirm-actions[hidden] {
    display: none;
}

.aq-card--image-question .butt-confirm-btn {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    min-height: 68px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    color: #fff !important;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none;
    outline: none;
    transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.16s, box-shadow 0.16s;
}

.aq-card--image-question .butt-confirm-btn:active {
    transform: scale(0.975);
}

.aq-card--image-question .butt-confirm-btn:disabled {
    cursor: wait;
    opacity: 0.72;
}

.aq-card--image-question .butt-confirm-btn--confirm {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 50%),
        linear-gradient(180deg, #ff5d85 0%, #ff2c61 100%) !important;
    box-shadow:
        0 12px 30px rgba(225, 29, 72, 0.36),
        inset 0 1px rgba(255, 255, 255, 0.3);
}

.aq-card--image-question .butt-confirm-btn--cancel {
    color: rgba(255, 255, 255, 0.96) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.09)) !important;
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

@media (max-width: 380px), (max-height: 700px) {
    .butt-option--selected,
    .butt-option--selected img,
    .silk-option--selected,
    .silk-option--selected img {
        min-height: min(34vh, 280px);
        height: min(34vh, 280px);
    }

    .aq-page--image-selected .aq-title {
        max-width: 10ch;
        font-size: clamp(22px, 7vw, 30px);
    }

    .aq-page--image-selected .aq-copy {
        max-width: 15ch;
        font-size: 15px;
    }

    .butt-confirm-actions {
        gap: 14px;
        margin-top: 18px;
    }

    .aq-card--image-question .butt-confirm-btn {
        min-height: 60px;
        font-size: 17px;
    }
}

/* Silk image confirmation flow */
.silk-image-grid {
    transition: grid-template-columns 0.22s ease, gap 0.22s ease;
}

.silk-option {
    font-size: 0;
    line-height: 0;
}

.silk-option span {
    display: none !important;
}

.silk-option--selected {
    grid-column: 1 / -1;
    min-height: min(46vh, 420px);
    border-color: rgba(255, 77, 117, 0.62);
    box-shadow:
        0 18px 42px rgba(225, 29, 72, 0.32),
        0 0 0 2px rgba(255, 77, 117, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transform: none !important;
}

.silk-option--selected img {
    height: min(46vh, 420px);
}

.silk-option--dimmed {
    display: none;
}
