@media (min-width: 992px) {
  :root {
    --LUVIO-header-height: 72px;
    --LUVIO-footer-height: 96px;
  }
  body {
    max-width: none;
    margin: 0;
    background: linear-gradient(135deg, var(--LUVIO-bg) 0%, var(--LUVIO-secondary-light) 100%);
    overflow: hidden;
  }

  /* PC: app-shell — центр. скруглённый блок (header + main + nav внутри) */
  .app-shell {
    max-width: 1440px;
    margin: 24px auto;
    background: var(--LUVIO-bg);
    height: calc(100vh - 48px);
    min-height: 0;
    box-shadow: 0 18px 40px rgba(10, 12, 20, 0.08);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .app-shell .main_content {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
  }

  .app-shell .main_content .site_content {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 24px;
  }

  .app-shell .main_content .site_content.home-simple,
  .app-shell .main_content .site_content.chat-screen {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }

  .home-simple {
    height: 100%;
    padding-bottom: 0;
  }
  .home-simple .home-simple-section {
    height: 100%;
    padding: 0 24px 48px;
  }
  .home-simple .home-simple-card {
    display: flex;
  }
  .home-simple .home-swipe {
    display: none;
  }
  .home-simple .home-simple-card {
    max-width: 900px;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  }
  .home-simple .home-simple-media {
    min-height: 480px;
  }
  .home-simple .home-simple-actions {
    bottom: 20px;
    gap: 16px;
  }
  .home-simple .home-simple-action {
    width: 64px;
    height: 64px;
  }
  .home-simple .home-simple-info {
    padding: 32px 28px;
  }
  .home-simple .home-simple-name {
    font-size: 28px;
  }
  .tinder-like__details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-shell:has(.site_content.home-simple) .main_content {
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .app-shell:has(.site_content.home-simple) .site_content.home-simple {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
  }
  .app-shell:has(.site_content.chat-screen) .main_content {
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .app-shell:has(.site_content.chat-screen) .site_content.chat-screen {
    flex: 1 1 0;
    min-height: 0;
    height: auto;
    padding-bottom: 0;
  }

  .site_lr-spacer,
  .section-main,
  .section-main-ver {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Header внутри app-shell, скругления сверху, на всю ширину */
  .app-shell > header,
  #top-navbar,
  #top-header {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px 48px;
    height: 72px;
    min-height: 72px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--LUVIO-substrate);
    border-radius: 24px 24px 0 0;
    z-index: 120;
  }

  /* site_lr-spacer на header не ограничивает ширину */
  .app-shell > header.site_lr-spacer,
  #top-navbar.site_lr-spacer {
    max-width: 100%;
  }

  .page-loader {
    max-width: 1440px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    padding: 0 48px;
  }

  #top-navbar.fixed,
  #top-header.fixed {
    position: sticky;
    top: 0;
  }

  .splash-btns-bottom {
    position: relative;
    bottom: auto;
    max-width: 1200px;
    left: auto;
    transform: none;
    padding: 18px 0;
    margin: 24px auto 0;
  }

  .auth-section .auth-buttons.splash-btns-bottom {
    margin-top: 24px;
  }

  /* Nav-bar (footer) внутри app-shell, скругления снизу */
  .app-shell > .footer-nav {
    flex: 0 0 auto;
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    padding: 12px 48px;
    border-radius: 0 0 24px 24px;
    border-top: 1px solid var(--LUVIO-substrate);
    box-shadow: none;
    background: var(--LUVIO-footer);
    backdrop-filter: blur(12px);
    gap: 32px;
    z-index: 110;
  }
  .footer-nav .nav-item img {
    filter: brightness(0) invert(1);
    opacity: 0.7;
  }
  .footer-nav .nav-item:hover img,
  .footer-nav .nav-item.active img {
    opacity: 1;
  }
  .footer-nav .nav-item.active img {
    filter: brightness(0) saturate(100%) invert(72%) sepia(53%) saturate(1250%) hue-rotate(231deg) brightness(98%) contrast(98%);
  }
  .footer-nav .nav-item.active {
    background: rgba(157, 111, 248, 0.25);
  }
  .footer-nav .nav-item:hover {
    background: rgba(255,255,255,0.08);
  }
  .footer-nav .nav-label {
    color: rgba(255,255,255,0.9);
    background: var(--LUVIO-footer);
    border-color: var(--LUVIO-primary-mid);
  }

  .nav-item {
    padding: 8px 12px;
    border-radius: 10px;
    background: transparent;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-item:hover {
    transform: translateY(-2px);
    background: var(--LUVIO-substrate);
  }

  .nav-item.active {
    background: var(--LUVIO-secondary-light);
  }

  .nav-item .indicator {
    display: none;
  }

  .nav-label {
    display: block;
    position: absolute;
    bottom: 42px;
    left: 50%;
    transform: translate(-50%, 6px);
    font-size: 12px;
    font-weight: var(--LUVIO-font-button);
    color: var(--LUVIO-inactive);
    background: var(--LUVIO-bg);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--LUVIO-substrate);
    box-shadow: 0 6px 16px rgba(15, 18, 25, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
  }

  .nav-item:hover .nav-label {
    opacity: 1;
    transform: translate(-50%, 0);
  }


  .left-footer {
    max-width: 1440px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .logo-home-main img {
    width: 32px;
    height: 32px;
  }

  .logo-home-main p {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .homeHeader-main {
    border-bottom: 1px solid var(--LUVIO-substrate);
  }


  .edit-profile {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .photo-slot {
    min-height: 100px;
  }

  .photo-slot--main {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 210px;
  }

  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .verification-status {
    align-items: center;
  }

  .profile-block {
    padding: 14px 16px;
    margin-bottom: 0;
  }

  .block-header h3 {
    font-size: 15px;
  }

  .block-subtitle {
    font-size: 11px;
  }

  .edit-profile .bio-body p,
  .edit-profile .verification-status p {
    font-size: 12px;
  }

  .edit-profile .field-input,
  .edit-profile .field-select {
    padding: 8px 10px;
    font-size: 13px;
  }

  .home-simple-carousel {
    top: 0;
    bottom: 0;
    left: 16px;
    right: 16px;
    transform: none;
  }
  .home-simple-carousel__dots {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
  }
  .home-simple-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .home-simple-carousel__btn--prev {
    left: 0;
  }
  .home-simple-carousel__btn--next {
    right: 0;
  }

  .edit-profile .tag {
    font-size: 11px;
    padding: 5px 8px;
  }

  .edit-profile .splash-btns-bottom {
    position: static;
    padding: 0;
    margin: 6px 0 0;
    background: transparent;
    justify-content: flex-start;
  }

  .store-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .likes-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
  }

  .likes-tabs {
    max-width: 520px;
    margin: 0 auto 20px;
  }

  .premium-banner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .premium-btn {
    grid-column: auto;
    justify-self: end;
    padding: 10px 18px;
  }

  .account-items-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .account-profile-card {
    padding: 20px 24px;
  }


  .account-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .account-card {
    align-items: flex-start;
    min-height: 140px;
  }

  .message-labal-main {
    padding: 18px 20px;
  }

  .message-conte h2 {
    font-size: 18px;
  }

  .message-conte p {
    font-size: 13px;
  }

  .chat {
    max-width: 1000px;
    margin: 0 auto;
    height: 100%;
  }
  .chat-screen .chat {
    max-width: 1100px;
    width: 100%;
    height: 100%;
  }
  .chat-screen .section-main {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
    min-height: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .chat-screen .chat-input {
    margin: 0;
    padding: 16px 18px 18px;
    width: 100%;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    border-radius: 0 0 20px 20px;
  }
  .chat-screen .chat {
    row-gap: 10px;
  }
  .chat-screen .messages .messages-content {
    padding-bottom: 36px;
  }

  .payment-modal {
    max-width: 640px;
    margin: 0 auto;
  }

  .payment-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .payment-row .inpt-la-main:first-child {
    grid-column: span 2;
  }
}

@media (min-width: 1200px) {
  .store-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .likes-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .account-items-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .chat {
    max-width: 1100px;
  }
}

/* ===== Right side Tinder-like card ===== */
.home-simple-info.tinder-like {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 18px 16px;
    box-shadow: 0 14px 40px rgba(16, 24, 40, 0.10);
    border: 1px solid rgba(15, 23, 42, 0.06);
    width: 100%;
    max-width: 460px;
}

/* header */
.tinder-like__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.tinder-like__title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    line-height: 1.1;
}

.tinder-like__name {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.tinder-like__age {
    font-size: 22px;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.75);
}

/* "..." menu button */
.tinder-like__more {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    cursor: pointer;
    transition: 0.2s ease;
}

.tinder-like__more:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.tinder-like__more span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.55);
    display: block;
}

/* meta row */
.tinder-like__meta {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.tinder-like__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 13px;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.72);
}

.tinder-like__meta-item img {
    width: 16px;
    height: 16px;
    opacity: 0.85;
}

/* bio */
.tinder-like__bio {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.tinder-like__bio p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(15, 23, 42, 0.72);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* tags */
.tinder-like__tags {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tinder-like__tags .tag {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.08); /* pink tint */
    border: 1px solid rgba(236, 72, 153, 0.18);
    color: rgba(236, 72, 153, 1);
    font-size: 12px;
    font-weight: 700;
}

/* ===== responsive ===== */
@media (max-width: 768px) {
    .home-simple-info.tinder-like {
        max-width: 100%;
        border-radius: 16px;
        padding: 14px;
    }
    .tinder-like__name { font-size: 22px; }
    .tinder-like__age { font-size: 18px; }
}
