* {
    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;
}


/* =========================================================
   THEME 1 — INSTAGRAM PINK
   Current/default design.
   Existing CSS above remains the source of this theme.
   ========================================================= */

body.theme-instagram-pink {
}


/* =========================================================
   THEME 2 — DARK LUXURY
   ========================================================= */

body.theme-dark-luxury {
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(207, 92, 143, .18),
            transparent 35%
        ),
        #09090b;

    color: #f8f5f6;
}

body.theme-dark-luxury .app-shell {
    background: #101012;
    box-shadow:
        0 25px 80px
        rgba(0, 0, 0, .45);
}

body.theme-dark-luxury .profile-section {
    background:
        linear-gradient(
            180deg,
            #141416 0%,
            #101012 100%
        );
}

body.theme-dark-luxury .profile-name,
body.theme-dark-luxury .profile-bio,
body.theme-dark-luxury .section-heading,
body.theme-dark-luxury .location-line {
    color: #f8f5f6;
}

body.theme-dark-luxury .profile-bio,
body.theme-dark-luxury .location-line {
    opacity: .78;
}

body.theme-dark-luxury .status-bubble {
    background: #211d21;
    color: #fff;
    border-color: #3c3036;
    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, .30);
}

body.theme-dark-luxury .main-button,
body.theme-dark-luxury .see-more,
body.theme-dark-luxury .private-full-button {
    background:
        linear-gradient(
            135deg,
            #f198bb,
            #ca527f
        );

    color: #fff;
}

body.theme-dark-luxury .gallery-tabs {
    background: #101012;
    border-color: #282328;
}

body.theme-dark-luxury .gallery-tab {
    color: #92878d;
}

body.theme-dark-luxury .gallery-tab.active {
    color: #f2a0be;
}

body.theme-dark-luxury .gallery-page {
    background: #101012;
}

body.theme-dark-luxury .photo-item,
body.theme-dark-luxury .private-photo {
    background: #1b191c;
}

body.theme-dark-luxury .photo-placeholder {
    background:
        linear-gradient(
            135deg,
            #181719,
            #242025
        );
}

body.theme-dark-luxury .private-cta-row {
    background: #101012;
}

body.theme-dark-luxury .see-more-disabled,
body.theme-dark-luxury .main-button-disabled {
    color: #fff;
}


/* =========================================================
   THEME 3 — EDITORIAL
   Clean fashion / portfolio look.
   ========================================================= */

body.theme-editorial {
    background: #f1eee9;
    color: #161514;
}

body.theme-editorial .app-shell {
    background: #fbfaf7;

    box-shadow:
        0 24px 70px
        rgba(42, 35, 29, .13);
}

body.theme-editorial .profile-section {
    background:
        linear-gradient(
            180deg,
            #ede7df 0%,
            #fbfaf7 72%
        );

    padding-top: 32px;
}

body.theme-editorial .avatar-wrap {
    transform: scale(1.08);
    margin-bottom: 18px;
}

body.theme-editorial .avatar {
    border-radius: 12px;
}

body.theme-editorial .profile-name {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 500;
    letter-spacing: -.02em;
}

body.theme-editorial .profile-bio {
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: 11px;
}

body.theme-editorial .status-bubble {
    background: #fffdfa;

    color: #292622;

    border:
        1px solid #d9d0c7;

    box-shadow:
        0 8px 24px
        rgba(63, 51, 41, .10);
}

body.theme-editorial .main-button,
body.theme-editorial .see-more,
body.theme-editorial .private-full-button {
    background: #181715;
    color: #fff;

    border-radius: 4px;

    box-shadow: none;

    text-transform: uppercase;
    letter-spacing: .08em;
}

body.theme-editorial .gallery-tabs {
    background: #fbfaf7;
    border-color: #ddd6ce;
}

body.theme-editorial .gallery-tab {
    color: #938b84;

    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
}

body.theme-editorial .gallery-tab.active {
    color: #181715;
}

body.theme-editorial .gallery-page {
    background: #fbfaf7;
}

body.theme-editorial .section-heading {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-weight: 500;
}

body.theme-editorial .photo-item,
body.theme-editorial .private-photo {
    border-radius: 2px;
}

body.theme-editorial .private-cta-row {
    background: #fbfaf7;
}

body.theme-editorial .private-full-pill {
    border-radius: 2px;
}



/* =========================================================
   THEME 4 — GLASS ROSE
   ========================================================= */

body.theme-glass-rose {
    background:
        radial-gradient(circle at 15% 10%, #ffd7e7, transparent 35%),
        radial-gradient(circle at 90% 20%, #f8c7df, transparent 32%),
        linear-gradient(160deg, #fff7fb, #f8eaf1);

    color: #34252c;
}

body.theme-glass-rose .app-shell {
    background: rgba(255,255,255,.60);

    box-shadow:
        0 25px 70px rgba(168,83,119,.14);

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

body.theme-glass-rose .profile-section,
body.theme-glass-rose .gallery-tabs,
body.theme-glass-rose .gallery-page,
body.theme-glass-rose .private-cta-row {
    background: rgba(255,255,255,.48);
}

body.theme-glass-rose .status-bubble {
    background: rgba(255,255,255,.72);

    border: 1px solid rgba(255,255,255,.85);

    box-shadow:
        0 10px 30px rgba(174,90,125,.13);

    backdrop-filter: blur(15px);
}

body.theme-glass-rose .main-button,
body.theme-glass-rose .see-more,
body.theme-glass-rose .private-full-button {
    background:
        linear-gradient(
            135deg,
            rgba(244,132,176,.95),
            rgba(211,91,140,.95)
        );

    box-shadow:
        0 10px 28px rgba(205,95,139,.24);
}


/* =========================================================
   THEME 5 — MIDNIGHT
   ========================================================= */

body.theme-midnight {
    background:
        radial-gradient(
            circle at top,
            #17243e,
            #080d17 55%
        );

    color: #f2f5fb;
}

body.theme-midnight .app-shell {
    background: #0e1522;

    box-shadow:
        0 25px 80px rgba(0,0,0,.46);
}

body.theme-midnight .profile-section {
    background:
        linear-gradient(
            180deg,
            #18243a 0%,
            #0e1522 100%
        );
}

body.theme-midnight .profile-name,
body.theme-midnight .profile-bio,
body.theme-midnight .location-line,
body.theme-midnight .section-heading {
    color: #f6f8fc;
}

body.theme-midnight .profile-bio,
body.theme-midnight .location-line {
    opacity: .75;
}

body.theme-midnight .status-bubble {
    background: #182235;
    color: #fff;

    border: 1px solid #2e3d58;

    box-shadow:
        0 8px 25px rgba(0,0,0,.25);
}

body.theme-midnight .main-button,
body.theme-midnight .see-more,
body.theme-midnight .private-full-button {
    background:
        linear-gradient(
            135deg,
            #7286ff,
            #ba72d8
        );

    color: #fff;
}

body.theme-midnight .gallery-tabs,
body.theme-midnight .gallery-page,
body.theme-midnight .private-cta-row {
    background: #0e1522;
}

body.theme-midnight .gallery-tabs {
    border-color: #253049;
}

body.theme-midnight .gallery-tab {
    color: #71809d;
}

body.theme-midnight .gallery-tab.active {
    color: #aebaff;
}

body.theme-midnight .photo-item,
body.theme-midnight .private-photo {
    background: #182033;
}


/* =========================================================
   THEME 6 — NUDE MINIMAL
   ========================================================= */

body.theme-nude-minimal {
    background: #eee8e0;
    color: #312a25;
}

body.theme-nude-minimal .app-shell {
    background: #fbf8f3;

    box-shadow:
        0 24px 70px rgba(79,62,48,.10);
}

body.theme-nude-minimal .profile-section {
    background:
        linear-gradient(
            180deg,
            #eee5da 0%,
            #fbf8f3 75%
        );
}

body.theme-nude-minimal .status-bubble {
    background: #fffaf4;

    border: 1px solid #ded2c5;

    color: #4a3f36;
}

body.theme-nude-minimal .main-button,
body.theme-nude-minimal .see-more,
body.theme-nude-minimal .private-full-button {
    background: #9c7b68;

    color: #fff;

    box-shadow: none;
}

body.theme-nude-minimal .gallery-tabs,
body.theme-nude-minimal .gallery-page,
body.theme-nude-minimal .private-cta-row {
    background: #fbf8f3;
}

body.theme-nude-minimal .gallery-tabs {
    border-color: #e0d7cd;
}

body.theme-nude-minimal .gallery-tab {
    color: #a09389;
}

body.theme-nude-minimal .gallery-tab.active {
    color: #6f5749;
}

body.theme-nude-minimal .photo-item,
body.theme-nude-minimal .private-photo {
    border-radius: 10px;
}

