/* Romantic Dating - Mobile Guest Profile */

.mobile-profile-page {
    display: none;
}


/* =========================================================
   MOBILE PROFILE
   ========================================================= */

@media (max-width: 600px),
       (orientation: landscape) and (max-height: 500px) {

    /* Показываем новый профиль */
    body:is(.guest-profile, .member-profile) .mobile-profile-page {
        display: block !important;
    }

    /* Старый профиль убираем */
    body:is(.guest-profile, .member-profile) .legacy-profile-page {
        display: none !important;
    }

    /* Старые элементы общего layout */
    body:is(.guest-profile, .member-profile) .legacy-topbar,
    body:is(.guest-profile, .member-profile) .legacy-header,
    body:is(.guest-profile, .member-profile) .legacy-menu,
    body:is(.guest-profile, .member-profile) .legacy-online-girls,
    body:is(.guest-profile, .member-profile) .legacy-footer {
        display: none !important;
    }

    body:is(.guest-profile, .member-profile) {
        margin: 0;
        padding: 0;
        background: #f5f5f7;
    }

    body:is(.guest-profile, .member-profile) .mobile-profile-page {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        background: #f5f5f7;
        overflow: hidden;
    }


    /* =====================================================
       CONTENT
       ===================================================== */

    .mobile-profile-content {
        width: 100%;
        padding: 0 0 18px;
        background: #f5f5f7;
    }


    /* =====================================================
       HERO PHOTO
       ===================================================== */

    .mobile-profile-hero {
        position: relative;
        width: 100%;
        height: 520px;
        overflow: hidden;
        background: #ddd;
    }

    .mobile-profile-main-photo {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }


    /* ONLINE GLASS */

    .mobile-profile-online {
        position: absolute;
        left: 14px;
        bottom: 18px;

        display: flex;
        align-items: center;
        gap: 7px;

        min-height: 32px;
        padding: 0 13px;

        color: #fff;
        font-size: 12px;
        font-weight: 600;

        border: 1px solid rgba(255,255,255,.18);
        border-radius: 18px;

        background:
            linear-gradient(
                145deg,
                rgba(12,10,14,.46),
                rgba(28,18,25,.38)
            );

        box-shadow:
            5px 8px 18px rgba(0,0,0,.13),
            inset 0 1px 0 rgba(255,255,255,.07);

        backdrop-filter: blur(14px) saturate(120%);
        -webkit-backdrop-filter: blur(14px) saturate(120%);
    }

    .mobile-profile-online > span {
        display: block;
        width: 8px;
        height: 8px;
        flex: 0 0 8px;

        background: #35d978;
        border-radius: 50%;

        box-shadow: 0 0 0 3px rgba(53,217,120,.15);
    }


    /* PHOTO COUNTER GLASS */

    .mobile-profile-photo-count {
        position: absolute;
        right: 14px;
        bottom: 18px;

        display: flex;
        align-items: center;
        gap: 7px;

        min-height: 32px;
        padding: 0 13px;

        color: #fff;
        font-size: 12px;
        font-weight: 600;

        border: 1px solid rgba(255,255,255,.18);
        border-radius: 18px;

        background:
            linear-gradient(
                145deg,
                rgba(12,10,14,.46),
                rgba(28,18,25,.38)
            );

        box-shadow:
            5px 8px 18px rgba(0,0,0,.13),
            inset 0 1px 0 rgba(255,255,255,.07);

        backdrop-filter: blur(14px) saturate(120%);
        -webkit-backdrop-filter: blur(14px) saturate(120%);
    }

    .mobile-profile-photo-count i {
        font-size: 13px;
    }


    /* =====================================================
       PROFILE SUMMARY
       ===================================================== */

    .mobile-profile-summary {
        position: relative;
        z-index: 3;

        margin: -5px 10px 10px;
        padding: 18px 10px 15px;

        background: #fff;
        border-radius: 18px;

        box-shadow: 0 5px 20px rgba(0,0,0,.06);
    }

    .mobile-profile-title {
        text-align: center;

        color: #171717;
        font-size: 25px;
        line-height: 1.15;
        font-weight: 600;
    }

    .mobile-profile-title span {
        color: #ef4f86;
        font-weight: 500;
    }

    .mobile-profile-id {
        margin-top: 5px;

        color: #999;
        font-size: 11px;
        line-height: 1.2;
        text-align: center;
    }


    /* =====================================================
       ACTIONS
       ===================================================== */

    .mobile-profile-actions {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 5px;

        margin-top: 18px;
    }

    .mobile-profile-action {
        appearance: none;
        -webkit-appearance: none;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;

        min-width: 0;
        min-height: 72px;

        margin: 0;
        padding: 8px 2px 5px;

        font-family: inherit;

        background: #fff7fa;
        border: 1px solid #f8dbe5;
        border-radius: 11px;

        cursor: pointer;
    }

    .mobile-profile-action i {
        display: flex;
        align-items: center;
        justify-content: center;

        height: 25px;
        margin-bottom: 5px;

        color: #ed4f85;
        font-size: 20px;
        line-height: 1;
    }

    .mobile-profile-action span {
        display: block;

        color: #555;
        font-size: 8.5px;
        line-height: 1.15;
        font-weight: 500;
        text-align: center;
    }

    .mobile-profile-action:active {
        transform: scale(.97);
        background: #fff0f5;
    }


    /* =====================================================
       COMMON CARDS
       ===================================================== */

    .mobile-profile-card {
        margin: 10px;
        padding: 18px;

        background: #fff;
        border-radius: 18px;

        box-shadow: 0 4px 18px rgba(0,0,0,.045);
    }

    .mobile-profile-card h2 {
        margin: 0 0 17px;

        color: #181818;
        font-size: 19px;
        line-height: 1.2;
        font-weight: 600;
    }


    /* =====================================================
       ABOUT
       ===================================================== */

    .mobile-profile-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .mobile-profile-details dl {
        margin: 0;
        padding: 0;
    }

    .mobile-profile-details dt {
        margin: 0 0 2px;

        color: #aaa;
        font-size: 10px;
        line-height: 1.2;
        font-weight: 400;
    }

    .mobile-profile-details dd {
        margin: 0 0 12px;

        color: #333;
        font-size: 12px;
        line-height: 1.25;
        font-weight: 500;

        overflow-wrap: anywhere;
    }

    .mobile-profile-occupation {
        margin-top: 3px;
        padding-top: 14px;

        color: #666;
        font-size: 11px;
        line-height: 1.5;

        border-top: 1px solid #eee;
    }


    /* =====================================================
       ABOUT TEXT / ACCORDIONS
       ===================================================== */

    .mobile-profile-text {
        padding: 0;
        overflow: hidden;
    }

    .mobile-profile-text h3 {
        position: relative;

        margin: 0;
        padding: 16px 42px 16px 17px;

        color: #333;
        font-size: 11px;
        line-height: 1.3;
        font-weight: 600;
        letter-spacing: .35px;

        cursor: pointer;
    }

    .mobile-profile-text h3::after {
        content: "+";

        position: absolute;
        top: 50%;
        right: 18px;

        color: #ef4f86;
        font-size: 20px;
        line-height: 1;
        font-weight: 300;

        transform: translateY(-50%);
    }

    .mobile-profile-text > div {
        display: none;

        padding: 0 17px 17px;

        color: #666;
        font-size: 11px;
        line-height: 1.6;
    }

    .mobile-profile-text.active > div {
        display: block;
    }

    .mobile-profile-text.active h3::after {
        content: "−";
    }


    /* =====================================================
       PHOTOS
       ===================================================== */

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

        margin-bottom: 14px;
    }

    .mobile-profile-section-heading h2 {
        margin: 0;
    }

    .mobile-profile-section-heading > span {
        color: #aaa;
        font-size: 10px;
        white-space: nowrap;
    }

    .mobile-profile-thumbnails {
        display: flex;
        gap: 8px;

        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;

        padding-bottom: 3px;

        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-profile-thumbnails::-webkit-scrollbar {
        display: none;
    }

    .mobile-profile-thumbnails img {
        display: block;

        width: 88px;
        height: 110px;
        flex: 0 0 88px;

        object-fit: cover;
        object-position: center top;

        border-radius: 10px;
        background: #eee;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .mobile-profile-hero {
        height: 475px;
    }

    .mobile-profile-summary {
        margin-left: 8px;
        margin-right: 8px;
        padding-left: 7px;
        padding-right: 7px;
    }

    .mobile-profile-actions {
        gap: 3px;
    }

    .mobile-profile-action {
        min-height: 68px;
        padding-left: 1px;
        padding-right: 1px;
    }

    .mobile-profile-action i {
        font-size: 18px;
    }

    .mobile-profile-action span {
        font-size: 7.8px;
    }

    .mobile-profile-card {
        margin-left: 8px;
        margin-right: 8px;
    }

}
/* =========================================================
   PROFILE — LANDSCAPE
   ========================================================= */

@media (orientation: landscape) and (max-height: 500px) {

    body:is(.guest-profile, .member-profile) .mobile-profile-page {
        width: 100%;
        max-width: none;
        margin: 0;
    }
}