* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    background: #fff9fb;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #1d1b1c;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(255, 211, 225, 0.45),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 15%,
            rgba(255, 232, 240, 0.65),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #fff9fb 0%,
            #ffffff 44%,
            #fffafd 100%
        );
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

.app-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    padding-bottom: calc(38px + env(safe-area-inset-bottom));
}


/* PROFILE */

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding:
        calc(30px + env(safe-area-inset-top))
        20px
        22px;
    text-align: center;
}

.avatar-wrap {
    position: relative;
    margin-bottom: 17px;
}

.avatar {
    width: 112px;
    height: 112px;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow:
        0 8px 28px rgba(164, 90, 120, 0.13),
        0 0 0 1px rgba(220, 160, 184, 0.2);
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #ffd8e5,
            #f1a9c1
        );

    color: white;
    font-size: 42px;
    font-weight: 600;
}

.status-bubble {
    position: absolute;
    left: 86px;
    top: 7px;

    width: max-content;
    max-width: 155px;

    padding: 8px 11px;

    border-radius: 13px 13px 13px 4px;

    background: rgba(255, 255, 255, 0.97);

    box-shadow:
        0 5px 22px rgba(119, 74, 91, 0.12);

    border: 1px solid rgba(230, 202, 212, 0.75);

    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;

    color: #6e525c;
}

.profile-name {
    margin: 0;
    font-size: 25px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.6px;
}

.profile-bio {
    max-width: 310px;

    margin:
        7px
        auto
        16px;

    color: #7b7275;

    font-size: 14px;
    line-height: 1.5;
}

.location-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    min-height: 24px;

    margin-bottom: 18px;

    font-size: 14px;

    color: #8a7f83;
}

.location-value {
    position: relative;

    color: #d16f95;

    font-weight: 650;

    animation: locationGlow 2.2s ease-in-out infinite;
}

.location-value::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #ef9fbc,
            transparent
        );
}

@keyframes locationGlow {
    0%,
    100% {
        opacity: 0.78;
    }

    50% {
        opacity: 1;
        text-shadow:
            0 0 10px rgba(231, 133, 170, 0.28);
    }
}

.main-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: min(100%, 340px);
    min-height: 50px;

    padding: 13px 20px;

    border: 0;
    border-radius: 16px;

    text-decoration: none;

    background:
        linear-gradient(
            135deg,
            #ef9cba,
            #dc769d
        );

    color: white;

    font-size: 14px;
    font-weight: 650;

    box-shadow:
        0 9px 25px rgba(218, 112, 151, 0.23);

    cursor: pointer;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.main-button:active {
    transform: scale(0.985);
}

.main-button-disabled {
    opacity: 0.85;
}


/* TABS */

.gallery-tabs {
    position: sticky;
    top: 0;
    z-index: 15;

    display: grid;
    grid-template-columns: 1fr 1fr;

    width: 100%;

    background: rgba(255, 255, 255, 0.91);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-top: 1px solid rgba(227, 211, 217, 0.58);
    border-bottom: 1px solid rgba(227, 211, 217, 0.72);
}

.gallery-tab {
    position: relative;

    height: 48px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #a0979a;

    font-size: 13px;
    font-weight: 650;

    cursor: pointer;
}

.gallery-tab.active {
    color: #242021;
}

.gallery-tab.active::after {
    content: "";

    position: absolute;

    left: 27%;
    right: 27%;
    bottom: 0;

    height: 2px;

    border-radius: 2px;

    background:
        linear-gradient(
            90deg,
            #eca1bd,
            #d76e96
        );
}


/* SWIPE AREA */

.gallery-slider {
    display: flex;

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    scrollbar-width: none;

    overscroll-behavior-x: contain;
}

.gallery-slider::-webkit-scrollbar {
    display: none;
}

.gallery-page {
    flex: 0 0 100%;

    width: 100%;
    min-width: 100%;

    scroll-snap-align: start;

    padding-bottom: 30px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 57px;

    padding: 0 16px;
}

.section-heading h2 {
    margin: 0;

    font-size: 15px;
    line-height: 1.2;

    font-weight: 700;
    letter-spacing: -0.2px;
}

.private-pill {
    padding: 5px 9px;

    border-radius: 999px;

    background: #fff1f6;

    color: #cf6f93;

    font-size: 10px;
    font-weight: 700;
}


/* GRID */

.photo-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 2px;

    width: 100%;

    background: rgba(255, 255, 255, 0.7);
}

.photo-item,
.private-photo {
    position: relative;

    width: 100%;
    aspect-ratio: 1 / 1;

    overflow: hidden;

    border: 0;

    padding: 0;

    background: #f9eef2;
}

.photo-item {
    cursor: pointer;
}

.photo-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.25s ease;
}

.photo-item:active img {
    transform: scale(0.98);
}

.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #fff2f6,
            #fbe5ed
        );

    color: rgba(209, 123, 154, 0.44);

    font-size: 21px;
}


/* PRIVATE */

.private-photo {
    background: #eadde2;
}

.private-fake-image {
    position: absolute;
    inset: -10px;

    filter: blur(12px);

    transform: scale(1.15);

    opacity: 0.92;
}

.private-fake-1 {
    background:
        linear-gradient(
            145deg,
            #694856,
            #d2a0b3,
            #69505c
        );
}

.private-fake-2 {
    background:
        linear-gradient(
            45deg,
            #d3b7af,
            #8c666f,
            #edcad0
        );
}

.private-fake-3 {
    background:
        linear-gradient(
            130deg,
            #9d7e82,
            #e8b7bf,
            #6a5961
        );
}

.private-fake-4 {
    background:
        linear-gradient(
            75deg,
            #d59aaa,
            #64505a,
            #f0ccd5
        );
}

.private-fake-5 {
    background:
        linear-gradient(
            130deg,
            #755968,
            #c99cab,
            #e2c3bd
        );
}

.private-fake-6 {
    background:
        linear-gradient(
            55deg,
            #d1b0b8,
            #806570,
            #dd9eb3
        );
}

.private-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        rgba(28, 21, 24, 0.12);

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.lock-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.86);

    color: #cd7597;

    font-size: 16px;

    box-shadow:
        0 5px 15px rgba(50, 28, 37, 0.16);
}


/* SEE MORE */

.see-more {
    display: flex;
    align-items: center;
    justify-content: center;

    width: calc(100% - 32px);
    min-height: 48px;

    margin: 18px auto 0;

    border-radius: 15px;

    border:
        1px solid
        rgba(222, 168, 188, 0.7);

    background:
        rgba(255, 247, 250, 0.88);

    color: #cc6e92;

    text-decoration: none;

    font-size: 13px;
    font-weight: 650;

    transition:
        transform 0.18s ease,
        background 0.18s ease;
}

.see-more:active {
    transform: scale(0.985);

    background: #fff0f5;
}

.see-more-disabled {
    opacity: 0.72;
}


/* LIGHTBOX */

.lightbox {
    position: fixed;
    inset: 0;

    z-index: 1000;

    display: none;

    align-items: center;
    justify-content: center;

    background:
        rgba(17, 13, 15, 0.96);

    touch-action: pan-y;
}

.lightbox.open {
    display: flex;
}

.lightbox-stage {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        calc(62px + env(safe-area-inset-top))
        12px
        calc(62px + env(safe-area-inset-bottom));
}

.lightbox-stage img {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-close {
    position: absolute;

    top: calc(15px + env(safe-area-inset-top));
    right: 16px;

    z-index: 3;

    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.11);

    color: white;

    font-size: 31px;
    line-height: 1;

    cursor: pointer;
}

.lightbox-arrow {
    position: absolute;

    top: 50%;

    z-index: 4;

    width: 42px;
    height: 48px;

    margin-top: -24px;

    border: 0;

    background: rgba(255, 255, 255, 0.08);

    color: white;

    border-radius: 12px;

    font-size: 36px;

    cursor: pointer;
}

.lightbox-prev {
    left: 8px;
}

.lightbox-next {
    right: 8px;
}

.lightbox-counter {
    position: absolute;

    bottom: calc(19px + env(safe-area-inset-bottom));

    left: 50%;

    transform: translateX(-50%);

    color: rgba(255, 255, 255, 0.84);

    font-size: 12px;
}


/* DESKTOP */

@media (min-width: 700px) {

    body {
        padding:
            28px
            0;
    }

    .app-shell {
        max-width: 480px;
        min-height: calc(100vh - 56px);

        overflow: hidden;

        border-radius: 28px;

        background:
            rgba(255, 255, 255, 0.94);

        box-shadow:
            0 20px 70px
            rgba(101, 64, 79, 0.12);

        border:
            1px solid
            rgba(232, 211, 219, 0.78);
    }

    .gallery-tabs {
        top: 0;
    }

    .lightbox-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 699px) {

    .lightbox-arrow {
        display: none;
    }

}

.private-inline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 9px 14px;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #f3acc6,
            #dc7da1
        );

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    box-shadow:
        0 7px 18px
        rgba(213, 111, 149, .18);

    transition:
        transform .16s ease,
        box-shadow .16s ease;
}

.private-inline-button:active {
    transform: scale(.985);
}

.private-inline-disabled {
    opacity: .65;
}

.lock-icon {
    font-size: 15px;
    line-height: 1;
}

/* Clean private lock icon */

.lock-icon {
    position: relative;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);

    box-shadow:
        0 5px 15px
        rgba(50, 28, 37, 0.14);
}

.lock-shackle {
    position: absolute;

    width: 11px;
    height: 10px;

    top: 8px;
    left: 50%;

    transform: translateX(-50%);

    border:
        2px solid
        #df789f;

    border-bottom: 0;

    border-radius:
        7px
        7px
        0
        0;
}

.lock-body {
    position: absolute;

    width: 15px;
    height: 12px;

    top: 15px;
    left: 50%;

    transform: translateX(-50%);

    border-radius: 3px;

    background: #df789f;
}

.lock-body::after {
    content: "";

    position: absolute;

    width: 3px;
    height: 5px;

    left: 50%;
    top: 4px;

    transform: translateX(-50%);

    border-radius: 2px;

    background: rgba(255, 255, 255, 0.92);
}

.private-cta-row {
    width: 100%;
    padding: 10px 12px;
}

.private-full-button {
    width: 100%;
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 10px 12px 10px 16px;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #f3abc5,
            #e28bad
        );

    color: #fff;

    text-decoration: none;

    font-size: 13px;
    font-weight: 750;

    box-shadow:
        0 7px 18px
        rgba(211, 111, 149, .16);

    transition:
        transform .16s ease;
}

.private-full-button:active {
    transform: scale(.99);
}

.private-full-pill {
    flex: 0 0 auto;

    padding: 6px 10px;

    border-radius: 999px;

    background: rgba(255,255,255,.84);

    color: #d66f98;

    font-size: 10px;
    font-weight: 750;
}

/* Private CTA - full section width */

.private-cta-row {
    width: 100%;
    padding: 10px 12px;
    background: #ffffff;
}

.private-full-button {
    width: 100%;
    min-height: 52px;

    display: flex !important;
    align-items: center;
    justify-content: space-between;

    padding: 10px 13px 10px 17px;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #f1a5c0,
            #df82a5
        );

    color: #ffffff !important;

    text-decoration: none;

    font-size: 13px;
    font-weight: 750;

    box-shadow:
        0 7px 20px
        rgba(211, 111, 149, .18);
}

.private-full-pill {
    flex-shrink: 0;

    padding: 6px 10px;

    border-radius: 999px;

    background: rgba(255,255,255,.90);

    color: #d86f98;

    font-size: 10px;
    font-weight: 750;
}

.private-full-button.private-inline-disabled {
    opacity: 1;
}
