/* Dashboard redesign */
.dash-body {
    --dash-bg: #fff7fa;
    --dash-ink: #212121;
    --dash-muted: #514d51;
    --dash-line: rgba(33, 33, 33, .09);
    --dash-shadow: 0 18px 42px rgba(34, 24, 29, .07);
    min-height: 100vh;
    background: var(--dash-bg);
    color: var(--dash-ink);
    position: relative;
    overflow-x: hidden;
}

.dash-body::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: min(980px, 74vw);
    height: 430px;
    background: radial-gradient(ellipse at top right, rgba(239, 41, 95, .16) 0%, rgba(239, 41, 95, .08) 38%, rgba(255, 247, 250, 0) 75%);
    pointer-events: none;
    z-index: 0;
}

body.is-popup-scroll-locked {
    overflow: hidden;
}

.dashboard-shell {
    width: min(100%, 1396px);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 28px;
    padding: 18px 18px 28px;
    position: relative;
    z-index: 1;
}

.dash-sidebar {
    position: sticky;
    top: 18px;
    height: calc(100vh - 36px);
    min-height: 710px;
    padding: 0 0 14px;
    gap: 0;
    overflow-y: auto;
    background: rgba(255, 255, 255, .88);
    border-radius: 22px;
    box-shadow: 0 24px 48px rgba(34, 24, 29, .08);
    backdrop-filter: blur(18px);
}

.dash-drawer-user,
.dash-drawer-nav,
.dash-sidebar-backdrop {
    display: none;
}

.dash-brand {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--dash-line);
}

.dash-brand img,
.dash-mobile-brand img {
    width: 122px;
    height: auto;
    object-fit: contain;
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 23px 16px 0 0;
}

.dash-nav__eyebrow {
    display: block;
    margin: 0 0 4px 45px;
    padding: 0;
    color: #b8b4b6;
    background: transparent;
    border-radius: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    text-align: left;
    text-transform: uppercase;
}

.dash-nav a+.dash-nav__eyebrow {
    margin-top: 18px;
}

.dash-nav a {
    width: 206px;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 0 0 40px;
    border-radius: 0 11px 11px 0;
    color: #514d51;
    background: transparent;
    font-size: 16px;
    font-weight: 400;
    position: relative;
    transition: color .22s ease, transform .22s ease, filter .22s ease;
}

.dash-nav a i {
    width: 20px;
    text-align: center;
    color: #2f2d30;
    font-size: 16px;
}

.dash-nav a.active,
.dash-nav a:hover {
    color: var(--dash-ink);
    background: url("../images/modals/modal-popup-bg.png") no-repeat left center / 100% 100%;
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.dash-nav a:hover {
    transform: translateX(3px);
}

.dash-nav a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
}

.premium-box {
    margin: 16px 14px 0;
    min-height: 204px;
    padding: 23px 18px 24px;
    text-align: center;
    border-radius: 13px;
    background:
        radial-gradient(circle at 85% 18%, rgba(239, 41, 95, .11) 1.6px, transparent 2.2px) 0 0 / 10px 10px,
        linear-gradient(130deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .96) 50%, rgba(255, 232, 239, .94) 100%);
    box-shadow: 0 10px 24px rgba(34, 24, 29, .045);
    overflow: hidden;
}

.premium-box__icon {
    margin-bottom: 15px;
    line-height: 1;
}

.premium-box__icon img {
    width: 66px;
    height: 58px;
    margin: 0 auto;
    object-fit: contain;
}

.premium-box h3 {
    margin: 0 0 10px;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 700;
}

.premium-box p {
    margin: 0 auto 14px;
    max-width: 174px;
    color: var(--dash-muted);
    font-size: 16px;
    line-height: 1.32;
}

.premium-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 14px;
}

.premium-box__icon {
    margin: 0;
}

.premium-box__icon img {
    width: 48px;
    height: 42px;
}

.premium-box h3 {
    margin: 0;
}

.premium-box p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.premium-box--active {
    background: linear-gradient(145deg, #fffaf2, #fff0da);
    border: 1px solid #f5dfbd;
}

.premium-box--active h3 {
    color: #854d0e;
}

.premium-box__status {
    padding: 4px 9px;
    border-radius: 999px;
    background: #e6f3e9;
    color: #28603b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.premium-box .sidebar-credits-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    padding: 10px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .75);
    color: #854d0e;
    font-size: 13px;
}

.premium-box .sidebar-credits-pill strong {
    overflow-wrap: anywhere;
    min-width: 0;
}

.premium-box>a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding-top: 4px;
    font-size: 13px;
}

.premium-box--active>a {
    color: #854d0e;
}

.premium-box--active>a i {
    background: transparent;
    color: currentColor;
}

.premium-box a,
.dash-section-title a,
.mini-card__title span,
.mini-card__title a {
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 500;
    transition: color .22s ease, transform .22s ease;
}

.premium-box a:hover,
.dash-section-title a:hover,
.mini-card__title a:hover {
    color: var(--primary-hover);
    transform: translateY(-1px);
}

.premium-box a i,
.dash-section-title a i,
.mini-card__title a i {
    width: 22px;
    height: 22px;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--primary-color);
    font-size: 11px;
}

.dash-main {
    min-width: 0;
    padding: 15px 0 0;
}

.dash-mobile-head {
    display: none;
}

.dash-topbar {
    margin-bottom: 41px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 1500;
}

.dash-topbar h1 {
    margin: 0;
    font-size: 36px;
    line-height: 1;
    font-weight: 400;
}

.dash-topbar h1 span {
    color: var(--primary-color);
}

.dash-topbar p {
    margin: 13px 0 0;
    color: var(--dash-muted);
    font-size: 16px;
}

.dash-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1300;
}

.upgrade-pill,
.circle-action,
.dash-user {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    font-family: var(--font-body);
    text-decoration: none;
    outline: none;
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, filter .22s ease;
}

.upgrade-pill:hover,
.circle-action:hover,
.dash-user:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(34, 24, 29, .1);
    filter: saturate(1.04);
}

.upgrade-pill:active,
.circle-action:active,
.dash-user:active {
    transform: translateY(0) scale(.98);
}

.upgrade-pill {
    gap: 10px;
    min-width: 184px;
    padding: 0 18px 0 8px;
    color: var(--dash-ink);
    font-size: 16px;
    background: url("../images/modals/upgrade-account.png") no-repeat center / 100% 100%;
}

.upgrade-pill i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--dash-ink);
    font-size: 18px;
}

.credits-balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    padding: 0 16px 0 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1.5px solid #fed7aa;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.12);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.credits-balance-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(251, 146, 60, 0.22);
    border-color: #f97316;
    color: #ea580c;
}

.coin-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.credits-balance-pill .coin-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.credits-balance-pill strong {
    font-size: 16px;
    color: #ea580c;
    font-weight: 800;
}

@keyframes creditPulse {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.16);
        border-color: #f97316;
        box-shadow: 0 4px 18px rgba(249, 115, 22, 0.4);
    }

    100% {
        transform: scale(1);
    }
}

.credit-pulse-active {
    animation: creditPulse 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sidebar-credits-pill {
    transition: transform 0.2s, box-shadow 0.2s;
}

.sidebar-credits-pill:hover {
    transform: translateY(-1px);
}

.daily-claim-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 50px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    font-size: 13px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
    transition: all 0.2s ease;
    animation: pulse-daily 2.5s infinite;
}

.daily-claim-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45);
}

.daily-claim-btn i {
    font-size: 16px;
    color: #78350f;
}

@keyframes pulse-daily {

    0%,
    100% {
        box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
    }

    50% {
        box-shadow: 0 0 18px rgba(245, 158, 11, 0.6);
    }
}

.superlove-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.superlove-menu {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    left: auto;
    transform: translateY(8px);
    opacity: 0;
    visibility: hidden;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
    border: 1px solid #f1f5f9;
    padding: 8px;
    width: 210px;
    min-width: 200px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.superlove-dropdown-wrapper.is-open .superlove-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.superlove-menu button,
.profile-card__actions .superlove-menu button {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 42px !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    border: 1px solid transparent !important;
    background: #f8fafc !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    cursor: pointer !important;
    text-align: left !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    transform: none !important;
    transition: all 0.15s ease !important;
}

.superlove-menu button:hover,
.profile-card__actions .superlove-menu button:hover {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #e11d48 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.15) !important;
}

.superlove-menu button span.cost,
.profile-card__actions .superlove-menu button span.cost {
    margin-left: auto !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #ea580c !important;
    background: #fff7ed !important;
    border: 1px solid #ffedd5 !important;
    padding: 3px 8px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
}

.circle-action {
    width: 50px;
    justify-content: center;
    color: var(--dash-ink);
    font-size: 20px;
}

.dash-user {
    gap: 8px;
    padding: 5px 13px 5px 5px;
    color: var(--dash-ink);
    font-size: 16px;
}

.dash-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 28px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.dash-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 17px 3px;
}

.dash-section-title h2 {
    margin: 0;
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 700;
}

.dash-section-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.discover-slider-arrow {
    display: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    padding: 0;
}

.discover-slider-arrow:hover {
    background: #fff1f2;
    color: #ff4458;
    border-color: #fecdd3;
}

.discover-slider-arrow:active {
    transform: scale(0.92);
}

@media (max-width: 900px) {
    .discover-slider-arrow {
        display: inline-flex;
    }
}

.discover-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 12px;
}

.profile-card {
    width: auto;
    height: auto;
    min-height: 314px;
    aspect-ratio: 233 / 314;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: #ddd;
    box-shadow: 0 10px 26px rgba(31, 24, 28, .08);
    transition: transform .26s ease, box-shadow .26s ease;
}

.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(31, 24, 28, .13);
}

.profile-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, .46) 75%, rgba(0, 0, 0, .78) 100%);
}

.profile-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 128px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(150, 150, 150, .24) 30%, rgba(40, 40, 40, .56) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    mask-image: linear-gradient(180deg, transparent 0, #000 28%, #000 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28%, #000 100%);
}

.profile-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform .5s ease;
}

.profile-card:hover .profile-card__photo {
    transform: scale(1.035);
}

.profile-card__info {
    position: absolute;
    left: 16px;
    right: 58px;
    bottom: 15px;
    z-index: 3;
    padding: 0;
    color: #fff;
    background: transparent;
}

.profile-card__info h3 {
    margin: 0 0 5px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
}

.profile-card__info h3 a {
    color: inherit;
    text-decoration: none;
    transition: opacity .2s ease;
}

.profile-card__info h3 a:hover {
    opacity: .9;
    text-decoration: underline;
}

.profile-card__info h3 i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1877f2;
    background: radial-gradient(circle at center, #ffffff 42%, transparent 46%);
    font-size: 15px;
    width: 15px;
    height: 15px;
    line-height: 1;
    vertical-align: middle;
    margin-left: 4px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25));
}

.profile-card__info p {
    margin: 0 0 9px;
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
}

.tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    margin: 0;
}

.tags span {
    padding: 4px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .27);
    font-size: 13px;
    line-height: 1.2;
    backdrop-filter: blur(14px);
    transition: background-color .22s ease, transform .22s ease;
}

.profile-card:hover .tags span {
    background: rgba(255, 255, 255, .32);
}

.profile-card__actions {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 4;
    display: grid;
    gap: 10px;
}

.profile-card__actions>button,
.profile-card__actions .superlove-toggle {
    width: 37px;
    height: 37px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .25);
    font-size: 16px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.profile-card__actions>button:hover,
.profile-card__actions .superlove-toggle:hover {
    transform: scale(1.09);
    background: rgba(255, 255, 255, .34);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

.profile-card__actions>button:active,
.profile-card__actions .superlove-toggle:active {
    transform: scale(.96);
}

.profile-card__actions .superlove-toggle {
    color: #ffbd22;
}

.profile-card__actions>button[data-action="like"] {
    color: var(--primary-color);
}

.dash-sidecards {
    display: grid;
    gap: 17px;
    padding-top: 55px;
    position: relative;
    z-index: 1;
}

.mini-card {
    padding: 20px 20px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 17px;
    background: rgba(255, 255, 255, .64);
    box-shadow: var(--dash-shadow);
    backdrop-filter: blur(18px);
    transition: transform .24s ease, box-shadow .24s ease, background-color .24s ease;
}

.mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(34, 24, 29, .09);
}

.mini-card h3 {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
}

.completeness-card {
    min-height: auto;
    padding: 22px 24px;
    border-radius: 19px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.completeness-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 140px;
    background:
        radial-gradient(circle at 100% 0%, rgba(239, 41, 95, 0.22) 0%, rgba(239, 41, 95, 0.08) 40%, transparent 65%),
        radial-gradient(circle, rgba(239, 41, 95, 0.12) 1.5px, transparent 2.5px) 100% 0 / 14px 14px no-repeat;
    pointer-events: none;
    border-top-right-radius: 19px;
}

.completeness-card>h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: #212121;
    font-family: var(--font-body);
}

.completeness-content {
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: left;
}

.completeness-circle {
    position: relative;
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    margin: 0;
}

.completeness-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(35deg);
}

.completeness-circle circle {
    fill: none;
    stroke-width: 8.5;
    stroke-linecap: round;
}

.completeness-circle circle.track {
    stroke: rgba(239, 41, 95, 0.12);
}

.completeness-circle circle.progress {
    stroke: #EF295F;
    stroke-dasharray: 289;
    stroke-dashoffset: 58;
}

.completeness-circle .percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #212121;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-body);
}

.completeness-info {
    flex: 1;
    min-width: 0;
}

.completeness-info h4 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 700;
    color: #212121;
    font-family: var(--font-body);
    white-space: nowrap;
}

.completeness-info p {
    margin: 0 0 14px;
    font-size: 13px;
    color: #474747;
    line-height: 1.35;
    max-width: 220px;
}

.complete-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px 5px 5px;
    border-radius: 100px;
    color: #ffffff;
    background: #1A1A1A;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}

.complete-btn:hover {
    transform: translateY(-2px);
    background: #000000;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
    color: #ffffff;
}

.complete-btn:active {
    transform: translateY(0) scale(.98);
}

.complete-btn span {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #EF295F;
    background: #ffffff;
    font-size: 13px;
    flex-shrink: 0;
}

.mini-card__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.likes-card {
    min-height: 123px;
}

.likes-slider {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    align-items: center;
    gap: 12px;
}

.likes-slider__track {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
}

.likes-slider__track::-webkit-scrollbar {
    display: none;
}

.likes-slider__track a {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: block;
    border-radius: 50%;
    overflow: hidden;
    scroll-snap-align: start;
    text-decoration: none;
}

.likes-slider__track a img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.likes-slider__track>img {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    border: 0;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    scroll-snap-align: start;
}

.likes-slider__next {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dash-line);
    border-radius: 50%;
    color: var(--dash-ink);
    background: rgba(255, 255, 255, .5);
    cursor: pointer;
    transition: transform .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.likes-slider__next:hover {
    transform: translateX(2px);
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 10px 22px rgba(34, 24, 29, .08);
}

.likes-slider__next:active {
    transform: scale(.96);
}

.matches-card {
    gap: 0;
}

.match-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 0;
    border-top: 1px solid var(--dash-line);
}

.match-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.match-avatar {
    position: relative;
    flex: 0 0 auto;
}

.match-avatar img {
    cursor: pointer;
}

.match-avatar.is-online::after {
    content: "";
    position: absolute;
    right: 1px;
    top: 1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #12c84b;
    border: 1.5px solid #ffffff;
}

.match-row img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.match-row p {
    flex: 1;
    margin: 0;
}

.match-row b,
.match-row span {
    display: block;
}

.match-row b a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.match-row b a:hover {
    color: var(--dash-primary);
}

.match-row b {
    font-size: 14px;
}

.match-row span,
.match-row time {
    color: var(--dash-muted);
    font-size: 14px;
}

/* My Profile page */
.profile-body .dashboard-shell {
    width: min(100%, 1440px);
    max-width: 1440px;
    margin: 0 auto;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 27px;
    padding: 18px 73px 28px 15px;
}

.profile-body .dash-topbar {
    margin-bottom: 24px;
}

.profile-page-grid {
    grid-template-columns: minmax(0, 738px) 337px;
    gap: 20px;
}

.profile-page-grid .dash-sidecards {
    padding-top: 0;
}

.profile-page-grid .completeness-card {
    min-height: 265px;
}

.profile-page-grid .completeness-content {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.profile-page-grid .completeness-info p {
    margin-bottom: 0;
}

.profile-page-grid .complete-btn {
    display: none;
}

.my-profile-card {
    min-height: 681px;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(34, 24, 29, .055);
}

.my-profile-cover {
    display: block;
    position: relative;
    overflow: hidden;
    height: 155px;
    border-radius: 10px 10px 0 0;
    background: url("../images/modals/profile-banner.png") center / cover no-repeat;
    background-color: #ffe4ec;
    background-position: center;
    background-size: cover;
    text-decoration: none;
}

.my-profile-cover-upload span {
    position: absolute;
    top: 14px;
    right: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, .68);
    font-size: 12px;
    font-weight: 600;
}

.my-profile-summary {
    display: grid;
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 31px;
    padding: 0 32px;
}

.my-profile-avatar {
    width: 202px;
    height: 240px;
    margin-top: -68px;
    padding: 9px;
    display: block;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 14px;
    background: rgba(255, 255, 255, .28);
    position: relative;
    box-shadow: 0 18px 38px rgba(34, 24, 29, .10);
}

.my-profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 11px;
    object-fit: cover;
}

.my-profile-avatar::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 11px;
    background: linear-gradient(180deg, transparent 43%, rgba(0, 0, 0, .48) 100%);
    pointer-events: none;
}

.my-profile-avatar span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 28px;
    z-index: 1;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    text-decoration: underline;
}

.my-profile-copy {
    min-width: 0;
    padding-top: 21px;
}

.my-profile-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.my-profile-heading h2 {
    margin: 0 0 5px;
    font-family: var(--font-body);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
}

.my-profile-heading h2 i {
    margin-left: 5px;
    color: var(--verified-blue);
    font-size: 20px;
    vertical-align: middle;
}

.my-profile-heading p {
    margin: 0;
    color: #474747;
    font-size: 16px;
}

.my-profile-heading p i {
    margin-right: 6px;
    color: #212121;
}

.my-profile-edit {
    min-height: 48px;
    margin-top: 3px;
    padding: 5px 18px 5px 5px;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    flex: 0 0 auto;
    border-radius: 100px;
    color: #fff;
    background: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    transition: transform .22s ease, box-shadow .22s ease;
}

.my-profile-edit:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .16);
}

.my-profile-edit span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-color);
    background: #fff;
    font-size: 18px;
}

.profile-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.profile-chip-row span {
    min-height: 28px;
    padding: 5px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #474747;
    background: #f8dfe8;
    font-size: 14px;
    line-height: 1;
}

.my-profile-copy .profile-chip-row {
    margin: 12px 0 12px;
}

.my-profile-bio {
    max-width: 433px;
    margin: 0;
    color: #474747;
    font-size: 16px;
    line-height: 1.55;
}

.my-profile-tabs {
    margin: 46px 32px 31px;
    display: flex;
    gap: 34px;
    border-bottom: 1px solid #d6d2d4;
}

.my-profile-tabs button {
    min-width: 55px;
    min-height: 38px;
    border: 0;
    border-bottom: 3px solid transparent;
    color: #474747;
    background: transparent;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
}

.my-profile-tabs button.active {
    color: #212121;
    border-bottom-color: var(--primary-color);
    font-weight: 700;
}

.profile-tab-panel {
    display: none;
}

.profile-tab-panel.is-active {
    display: block;
}

.my-profile-photos {
    padding: 0 38px 46px;
}

.my-profile-photos.is-active {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.my-profile-photo,
.my-profile-add-photo {
    width: 100%;
    height: auto;
    min-height: 220px;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
}

.my-profile-photo {
    overflow: hidden;
    position: relative;
}

.my-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-profile-photo span {
    position: absolute;
    top: 11px;
    right: 8px;
    min-height: 30px;
    padding: 5px 13px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 999px;
    color: #fff;
    background: rgba(83, 72, 65, .55);
    font-size: 14px;
}

.my-profile-add-photo {
    border: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 9px;
    color: #5f5f5f;
    background: #f4f4f4;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.35;
    position: relative;
    cursor: pointer;
}

.my-profile-add-photo>i {
    font-size: 47px;
    line-height: 1;
}

.my-profile-add-photo small {
    position: absolute;
    top: 72px;
    left: 88px;
    width: 29px;
    height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #6a6a6a;
    background: #f4f4f4;
    font-size: 28px;
}

.my-profile-add-photo span {
    display: block;
}

.my-profile-about {
    padding: 0 43px 49px;
}

.my-profile-about dl {
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 52px;
}

.my-profile-about div {
    min-width: 0;
}

.my-profile-about dt {
    margin-bottom: 4px;
    color: #474747;
    font-size: 14px;
    font-weight: 400;
}

.my-profile-about dd {
    margin: 0;
    color: #212121;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.my-profile-interests {
    display: grid;
    grid-template-columns: 159px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding-top: 1px;
}

.my-profile-interests h3 {
    margin: 5px 0 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
}

/* Someone's Profile page */
.someone-profile-card {
    min-height: 681px;
}

.someone-profile-avatar {
    overflow: hidden;
    pointer-events: none;
}

.someone-profile-avatar::after,
.someone-profile-avatar span {
    display: none;
}

.someone-profile-avatar img {
    object-position: center;
}

.someone-profile-photos {
    padding: 0 34px 46px;
    position: relative;
}

.someone-profile-photos.is-active {
    display: block;
}

.someone-photo-track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.someone-photo-track::-webkit-scrollbar {
    display: none;
}

.someone-profile-photos img {
    flex: 0 0 calc((100% - 24px) / 4);
    width: calc((100% - 24px) / 4);
    height: 193px;
    border-radius: 8px;
    object-fit: cover;
    scroll-snap-align: start;
}

.someone-photo-next {
    position: absolute;
    right: 20px;
    top: 84px;
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #474747;
    background: #fff;
    box-shadow: 0 8px 18px rgba(34, 24, 29, .12);
    font-size: 14px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.someone-photo-next:hover {
    transform: translateX(2px);
    box-shadow: 0 10px 22px rgba(34, 24, 29, .16);
}

.someone-profile-about {
    padding-top: 0;
}

.someone-profile-grid .someone-sidecards {
    padding-top: 0;
}

/* Edit Profile page */
.edit-profile-body .dashboard-shell {
    width: min(100%, 1440px);
    max-width: 1440px;
    margin: 0 auto;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 27px;
    padding: 18px 73px 28px 15px;
}

.edit-profile-body .dash-topbar {
    margin-bottom: 49px;
}

.edit-mobile-head {
    display: none;
}

.edit-profile-title-row {
    margin-bottom: 23px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.edit-profile-title-row h2 {
    margin: 0 0 3px;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
}

.edit-profile-title-row p {
    margin: 0;
    color: #474747;
    font-size: 16px;
}

.edit-profile-actions,
.edit-mobile-actions {
    display: flex;
    gap: 10px;
}

.edit-btn {
    min-width: 103px;
    min-height: 41px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.edit-btn-outline {
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    background: transparent;
}

.edit-btn-dark {
    border: 1px solid #1a1a1a;
    color: #fff;
    background: #1a1a1a;
}

.edit-profile-card {
    min-height: 1583px;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 15px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 20px 48px rgba(34, 24, 29, .05);
}

.edit-photo-panel {
    padding: 40px 44px;
    border-right: 1px solid #dbd8da;
}

.edit-main-avatar {
    width: 216px;
    height: 260px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 15px;
}

.edit-main-avatar img,
.edit-main-avatar::after {
    inset: 0;
    border-radius: 15px;
}

.edit-main-avatar span {
    bottom: 29px;
    font-size: 18px;
}

.edit-photo-panel p {
    margin: 28px 0 0;
    color: #474747;
    font-size: 16px;
    line-height: 1.45;
}

.edit-fields-panel {
    min-width: 0;
}

.edit-section {
    padding: 25px 55px 20px;
    border-bottom: 1px solid #dbd8da;
    position: relative;
    overflow: visible;
}

.edit-section:last-child {
    border-bottom: 0;
}

.edit-section h3 {
    margin: 0 0 27px;
    color: var(--primary-color);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .02em;
}

.edit-field {
    margin-bottom: 16px;
}

.edit-field:last-child {
    margin-bottom: 0;
}

.edit-field label,
.edit-about-grid label {
    display: block;
    color: #212121;
    font-size: 16px;
    font-weight: 500;
}

.edit-field label {
    margin-bottom: 10px;
}

.edit-field label span {
    color: var(--primary-color);
}

.edit-field input,
.edit-field select,
.edit-field textarea,
.edit-about-grid select {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border: 1px solid #dedcde;
    border-radius: 8px;
    padding: 0 42px 0 11px;
    color: #474747;
    background-color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
}

.edit-field input,
.edit-field textarea {
    padding-right: 11px;
}

.edit-field select,
.edit-about-grid select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23474747' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 8px;
}

.edit-field select::-ms-expand,
.edit-about-grid select::-ms-expand {
    display: none;
}

.velori-select {
    width: 100%;
    min-width: 0;
    position: relative;
}

.velori-select select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.velori-select__button {
    width: 100%;
    min-height: 46px;
    padding: 0 42px 0 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #dedcde;
    border-radius: 8px;
    color: #474747;
    background: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    position: relative;
}

.velori-select__button::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 1.7px solid #474747;
    border-bottom: 1.7px solid #474747;
    transform: translateY(-68%) rotate(45deg);
    transition: transform .2s ease;
}

.velori-select.is-open .velori-select__button {
    border-color: rgba(239, 41, 95, .42);
    box-shadow: 0 0 0 3px rgba(239, 41, 95, .08);
}

.velori-select.is-open .velori-select__button::after {
    transform: translateY(-25%) rotate(225deg);
}

.velori-select__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 7px);
    z-index: 200;
    display: none;
    max-height: 218px;
    padding: 7px;
    border: 1px solid rgba(222, 220, 222, .95);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(34, 24, 29, .14);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.velori-select.is-up .velori-select__menu {
    top: auto;
    bottom: calc(100% + 7px);
}

.velori-select.is-open .velori-select__menu {
    display: grid;
    gap: 3px;
}

.velori-select__option {
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    color: #474747;
    background: transparent;
    font-family: var(--font-body);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.velori-select__option:hover,
.velori-select__option.is-selected {
    color: #212121;
    background: #f8dfe8;
}

.edit-field textarea {
    min-height: 47px;
    padding-top: 14px;
    resize: vertical;
    line-height: 1.35;
}

.edit-date-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.edit-question {
    margin: -1px 0 14px;
    color: #212121;
    font-size: 16px;
    font-weight: 500;
}

.edit-interest-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 9px;
}

.edit-interest-row button {
    min-height: 47px;
    padding: 0 16px;
    border: 0;
    border-radius: 100px;
    color: #474747;
    background: #f8dfe8;
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
}

.edit-interest-row button i {
    margin-left: 6px;
}

.edit-interest-row .add-interest {
    border: 1px solid #dedcde;
    background: #fff;
    font-size: 16px;
}

.edit-interest-row .add-interest i {
    margin: 0 9px 0 0;
    color: #212121;
    font-size: 20px;
}

.edit-photo-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.edit-photo-grid .my-profile-photo,
.edit-photo-grid .my-profile-add-photo {
    width: 162px;
    height: 193px;
}

.delete-photo {
    margin: 11px auto 0;
    display: block;
    border: 0;
    color: var(--primary-color);
    background: transparent;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.edit-about-section {
    padding-bottom: 45px;
}

.edit-about-grid {
    display: grid;
    gap: 12px;
}

.edit-about-grid label {
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 29px;
    align-items: center;
}

.edit-about-grid select {
    min-height: 46px;
    color: #474747;
    font-weight: 600;
}

.edit-mobile-actions {
    display: none;
}

/* Messages page */
.messages-shell {
    width: min(100%, 1396px);
}

.messages-layout {
    display: grid;
    grid-template-columns: 330px minmax(380px, 1fr) 290px;
    gap: 0;
    align-items: stretch;
    height: calc(100vh - 130px);
    min-height: 520px;
    max-height: 720px;
}

.messages-list-card,
.messages-chat-card,
.messages-matches-card {
    border: 1px solid rgba(255, 255, 255, .9);
    background: rgba(255, 251, 253, .78);
    box-shadow: var(--dash-shadow);
    backdrop-filter: blur(18px);
    height: 100%;
}

.messages-list-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 17px 0 0 17px;
    border-right: 0;
    background: linear-gradient(90deg, rgba(251, 248, 250, .96) 0%, rgba(255, 247, 250, .85) 100%);
}

.messages-list-head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 16px 14px;
}

.messages-list-head h2,
.messages-mobile-title,
.mobile-new-matches h2,
.messages-matches-card h2 {
    margin: 0;
    color: var(--dash-ink);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
}

.messages-list-head span {
    min-width: 27px;
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #fff;
    background: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
}

.messages-search {
    flex: 0 0 auto;
    min-height: 43px;
    margin: 0 12px 14px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    border-radius: 12px;
    background: #fff;
    color: var(--dash-ink);
    box-shadow: 0 12px 28px rgba(239, 41, 95, .02);
}

.messages-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--dash-ink);
    font-family: var(--font-body);
    font-size: 14px;
}

.messages-search input::placeholder {
    color: #98939a;
}

.mobile-new-matches,
.messages-mobile-title {
    display: none;
}

.message-thread-list {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.messages-empty-state {
    padding: 40px 16px;
    text-align: center;
    color: #94a3b8;
}

.messages-empty-state__icon {
    display: block;
    margin-bottom: 16px;
    color: #ff4458;
    font-size: 36px;
    line-height: 1;
}

.messages-empty-state__title {
    margin: 0 0 8px;
    color: #334155;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.messages-empty-state__description {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.messages-discover-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    max-width: 100%;
    margin-top: 20px;
    padding: 12px 24px;
    border: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, #ff4458 0%, #ff2a54 100%);
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: background-color .2s ease, box-shadow .2s ease;
}

.messages-discover-button--compact {
    margin-top: 16px;
    padding: 12px 20px;
    font-size: 12px;
}

.messages-discover-button:hover {
    background: #e92f4e;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 68, 88, .2);
}

.messages-discover-button:focus-visible {
    outline: 3px solid #b91c45;
    outline-offset: 3px;
}
.message-thread {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(33, 33, 33, .07);
    color: var(--dash-ink);
    text-decoration: none;
    transition: background-color .2s ease;
}

.message-thread.active {
    background: #fdf0f4;
}

.message-thread:hover {
    background: #fbf2f6;
}

.message-avatar {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    position: relative;
}

.message-avatar.is-online::after,
.message-avatar[data-online]::after,
.mobile-match-strip span[data-online]::after,
.mobile-match-strip span.is-online::after {
    content: "";
    position: absolute;
    right: 1px;
    top: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #13c34f;
    border: 1.5px solid #ffffff;
}

.message-avatar img,
.messages-chat-person img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.message-thread-copy {
    min-width: 0;
    flex: 1;
}

.message-thread-copy strong,
.message-thread-copy small {
    display: block;
}

.message-thread-copy strong {
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 700;
}

.message-thread-copy small {
    color: var(--dash-muted);
    font-size: 13px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.msg-status-new {
    color: #ff4458 !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.msg-status-icon {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: #ff4458;
    flex: 0 0 auto;
}

.message-thread-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    flex: 0 0 auto;
}

.message-thread-meta time {
    margin: 0;
    color: #98939a;
    font-size: 12px;
}

.btn-open-thread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, #ff4458 0%, #ff2a54 100%);
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(255, 68, 88, 0.25);
    transition: transform 0.15s ease;
}

.message-thread:hover .btn-open-thread {
    transform: scale(1.06);
}

.messages-chat-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0 17px 17px 0;
    background: rgba(255, 255, 255, .96);
    position: relative;
}

.messages-chat-head {
    flex: 0 0 auto;
    min-height: 67px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(33, 33, 33, .06);
    background: rgba(255, 255, 255, .98);
    z-index: 5;
}

.messages-chat-back {
    display: none;
}

.messages-chat-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.messages-chat-person img {
    width: 43px;
    height: 43px;
}

.messages-chat-person strong,
.messages-chat-person small {
    display: block;
}

.messages-chat-person strong {
    color: #000929;
    font-size: 16px;
    font-weight: 700;
}

.messages-chat-person small {
    margin-top: 4px;
    color: #9c979c;
    font-size: 12px;
}

.messages-chat-person small i {
    width: 8px;
    height: 8px;
    margin-right: 6px;
    display: inline-block;
    border-radius: 50%;
    background: #94a3b8;
}

.messages-chat-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.messages-chat-actions a {
    color: var(--dash-ink);
    font-size: 21px;
    transition: transform .2s ease, color .2s ease;
}

.messages-chat-actions a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.messages-chat-actions form {
    display: contents;
}

.messages-chat-actions button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.messages-chat-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 17px 26px 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
}

.chat-loading-older {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 20px;
    background: rgba(255, 240, 245, 0.9);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    align-self: center;
}

.chat-loading-older .spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 68, 88, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.chat-messages-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 260px;
    gap: 12px;
    color: #64748b;
    align-self: center;
}

.chat-messages-loader .spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 68, 88, 0.2);
    border-top-color: var(--primary-color, #ff4458);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.chat-messages-loader span {
    font-size: 13px;
    font-weight: 500;
}

.thread-spinner {
    display: inline-block;
    width: 11px;
    height: 11px;
    border: 2px solid rgba(255, 68, 88, 0.2);
    border-top-color: var(--primary-color, #ff4458);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.chat-date-pill {
    align-self: center;
    margin-bottom: 4px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #f4f2f4;
    color: var(--dash-ink);
    font-size: 12px;
    font-weight: 500;
}

.chat-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.chat-row>img:not(.chat-gift-img):not(.chat-attachment-img),
.chat-row>div>img:not(.chat-gift-img):not(.chat-attachment-img):first-child {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-row p {
    max-width: 320px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--dash-ink);
    background: #fff2f6;
    font-size: 14px;
    line-height: 1.35;
}

.chat-row.incoming p {
    color: #fff;
    background: var(--primary-color);
}

.chat-row.outgoing {
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 2px;
}

.chat-row.location p {
    max-width: none;
}

.chat-row.wide p {
    max-width: 390px;
}

.chat-sticker-bubble {
    padding: 4px 6px;
    background: transparent !important;
    display: inline-block;
}

.chat-sticker-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.14));
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: stickerPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-sticker-img:hover {
    transform: scale(1.1) rotate(2deg);
}

/* Partner avatar in incoming rows â€” small circle */
.chat-partner-avatar {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    flex: 0 0 34px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* â”€â”€ Gift Card in Chat â”€â”€ */
.chat-gift-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 22px 12px;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe8ed 100%);
    border: 1.5px solid rgba(255, 68, 88, 0.22);
    border-radius: 22px;
    box-shadow: 0 6px 20px rgba(255, 68, 88, 0.14);
    animation: giftCardPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.chat-gift-img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    display: block !important;
    filter: drop-shadow(0 6px 14px rgba(255, 68, 88, 0.2));
    transition: transform 0.25s ease;
}

.chat-gift-card:hover .chat-gift-img {
    transform: scale(1.08) rotate(3deg);
}

.chat-gift-tag {
    font-size: 12px;
    font-weight: 700;
    color: #ff4458;
    background: rgba(255, 255, 255, 0.95);
    padding: 3px 12px;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(255, 68, 88, 0.1);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

@keyframes giftCardPop {
    0% {
        transform: scale(0.4);
        opacity: 0;
    }

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

/* â”€â”€ Photo Attachments in Chat â”€â”€ */
.chat-attachment-img {
    display: block !important;
    width: 220px !important;
    height: 220px !important;
    min-width: 120px !important;
    max-width: 100% !important;
    object-fit: cover !important;
    border-radius: 18px !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    background: #f1f5f9;
}

.chat-attachment-img:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2) !important;
}

.chat-row.outgoing .chat-attachment-img {
    border-bottom-right-radius: 4px !important;
    margin-left: auto;
}

.chat-row.incoming .chat-attachment-img {
    border-bottom-left-radius: 4px !important;
}


@keyframes stickerPop {
    0% {
        transform: scale(0.35);
        opacity: 0;
    }

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

.messages-compose {
    flex: 0 0 auto;
    min-height: 64px;
    padding: 10px 20px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid rgba(33, 33, 33, .06);
    z-index: 5;
}

.chat-blocked-status {
    flex: 0 0 auto;
    min-height: 76px;
    margin: 10px 18px 14px;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(225, 29, 72, .15);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 241, 242, .98), rgba(255, 247, 249, .98));
    box-shadow: 0 8px 24px rgba(190, 18, 60, .08);
    color: #881337;
}

.chat-blocked-status__icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #f43f5e, #be123c);
    box-shadow: 0 7px 16px rgba(190, 18, 60, .2);
}

.chat-blocked-status__copy {
    display: grid;
    gap: 2px;
}

.chat-blocked-status__copy strong {
    font-size: 13px;
    line-height: 1.35;
}

.chat-blocked-status__copy small {
    color: #9f1239;
    font-size: 11px;
    line-height: 1.4;
}

@media (max-width: 576px) {
    .chat-blocked-status {
        margin: 8px 12px 12px;
        padding: 12px 14px;
        justify-content: flex-start;
    }
}

.messages-compose>button,
.gift-toggle,
.voice-toggle {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #555555;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.messages-compose>button:hover,
.gift-toggle:hover,
.voice-toggle:hover {
    color: #ff4458;
    transform: scale(1.1);
}

.voice-toggle.is-recording {
    color: #fff;
    background: #ef293f;
    animation: voiceRecordPulse 1.2s ease-in-out infinite;
}

.voice-recorder-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff1f2;
    color: #be123c;
    font-size: 12px;
    font-weight: 700;
}

.voice-recorder-status[hidden] {
    display: none;
}

.voice-recording-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef293f;
}

.voice-recorder-status button {
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
}

.chat-attachment-audio {
    display: block;
    width: min(280px, 62vw);
    height: 42px;
}

@keyframes voiceRecordPulse {
    50% {
        box-shadow: 0 0 0 7px rgba(239, 41, 63, .14);
    }
}

.messages-compose-field {
    min-width: 0;
    flex: 1;
    min-height: 48px;
    padding: 0 6px 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    background: #f3f1f3;
}

.messages-compose-field>i {
    color: #888888;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.messages-compose-field>i:hover {
    color: #ff4458;
}

.chat-row.incoming.typing-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.chat-row.incoming .typing-indicator {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    padding: 10px 16px !important;
    border-radius: 18px 18px 18px 4px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    background: #ff4458;
    border-radius: 50%;
    display: inline-block;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typingBounce {

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

    40% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.messages-compose-field input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--dash-ink);
    font-family: var(--font-body);
    font-size: 14px;
}

.messages-compose-field input::placeholder {
    color: #b9b3b9;
}

.messages-compose-field button {
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--dash-ink);
    font-size: 16px;
}

.messages-compose-field .gift-toggle {
    width: 22px;
    height: 22px;
    border-radius: 0;
    color: var(--dash-muted);
    background: transparent;
}

.gift-panel {
    position: absolute;
    left: 45px;
    right: 45px;
    bottom: 18px;
    z-index: 7;
    display: none;
    max-height: 570px;
    padding: 20px 16px 22px;
    border: 1px solid rgba(33, 33, 33, .10);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(33, 33, 33, .14);
    overflow-y: auto;
}

.is-gift-open .gift-panel {
    display: block;
}

.attachment-menu {
    position: absolute;
    left: 18px;
    bottom: 72px;
    width: 220px;
    z-index: 10;
    display: none;
    padding: 8px;
    border: 1px solid rgba(255, 68, 88, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(255, 68, 88, 0.08);
    animation: emojiFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-attachment-open .attachment-menu {
    display: block;
}

.attachment-menu__item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.attachment-menu__item:hover {
    background: #fff0f3;
    color: #ff4458;
    transform: translateX(3px);
}

.attachment-menu__item .item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex: 0 0 auto;
}

.attachment-menu__item.photo-item .item-icon {
    background: #e0f2fe;
    color: #0284c7;
}

.attachment-menu__item.video-item .item-icon {
    background: #fef3c7;
    color: #d97706;
}

.attachment-menu__item.file-item .item-icon {
    background: #f3e8ff;
    color: #9333ea;
}

.attachment-menu__item.gift-item .item-icon {
    background: #ffe4e6;
    color: #ff4458;
}

/* chat-attachment-img rules are defined above at .chat-attachment-img block */

.chat-attachment-video {
    max-width: 260px;
    max-height: 220px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: block;
    outline: none;
}

.chat-attachment-file {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1e293b !important;
    text-decoration: none;
    max-width: 260px;
    transition: background-color 0.2s ease;
}

.chat-attachment-file:hover {
    background: #f1f5f9;
    color: #ff4458 !important;
}

.chat-attachment-file i {
    font-size: 24px;
    color: #ff4458;
}

.chat-attachment-file span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
}

.emoji-panel {
    position: absolute;
    left: 20px;
    bottom: 74px;
    width: 320px;
    max-width: calc(100% - 40px);
    z-index: 10;
    display: none;
    padding: 14px 16px;
    border: 1px solid rgba(255, 68, 88, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(255, 68, 88, 0.08);
    animation: emojiFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-emoji-open .emoji-panel {
    display: block;
}

@keyframes emojiFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.emoji-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.emoji-panel__head span {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.emoji-panel__close {
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.emoji-panel__close:hover {
    color: #ff4458;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
    padding: 4px 2px;
}

.emoji-grid button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.emoji-grid button:hover {
    background: #fdf2f4;
    transform: scale(1.22);
}

.gift-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 17px;
}

.gift-balance {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gift-balance img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.gift-balance small,
.gift-balance strong,
.gift-balance b {
    display: block;
}

.gift-balance small {
    color: #98939a;
    font-size: 12px;
    line-height: 1.1;
}

.gift-balance strong {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
}

.gift-balance b {
    display: inline;
    color: var(--dash-ink);
    font-weight: 700;
}

.gift-panel__head>button {
    min-width: 113px;
    min-height: 32px;
    padding: 0 18px;
    border: 1px solid var(--dash-ink);
    border-radius: 999px;
    color: var(--dash-ink);
    background: #fff;
    font-size: 14px;
    font-weight: 500;
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px 12px;
}

.gift-grid button {
    min-width: 0;
    min-height: 111px;
    padding: 8px 8px 10px;
    border: 0;
    border-radius: 5px;
    background: #fff7fa;
    color: var(--dash-muted);
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
}

.gift-grid button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(239, 41, 95, .10);
}

.gift-grid button img {
    width: 65px;
    height: 65px;
    margin: 0 auto 8px;
    display: block;
    object-fit: contain;
}

.gift-grid button span {
    display: block;
    font-size: 13px;
    line-height: 1;
}

.gift-grid button>i {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--primary-color);
    font-size: 7px;
}

.chat-row.gift-sent p {
    display: grid;
    justify-items: center;
    gap: 6px;
    max-width: 170px;
}

.chat-row.gift-sent p img {
    width: 76px;
    height: 76px;
    border-radius: 0;
    object-fit: contain;
}

.chat-row.gift-sent p span {
    font-size: 12px;
}

.messages-matches-card {
    width: calc(100% - 10px);
    height: 100%;
    margin-left: 10px;
    padding: 16px 14px 7px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 17px;
    background:
        radial-gradient(circle at 92% 10%, rgba(239, 41, 95, .08) 1.5px, transparent 2.1px) 0 0 / 10px 10px,
        rgba(255, 251, 253, .82);
}

.messages-matches-card h2 {
    flex: 0 0 auto;
    margin: 0 0 14px 2px;
}

.message-match-list {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.message-match-item {
    min-height: 74px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(33, 33, 33, .08);
}

.message-match-item:last-child {
    border-bottom: 0;
}

.message-match-item img {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
}

.message-match-item div {
    min-width: 0;
    flex: 1;
}

.message-match-item h3 {
    margin: 0 0 3px;
    color: var(--dash-ink);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-match-item p {
    margin: 0;
    color: var(--dash-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-match-item h3 i,
.mobile-match-strip strong i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1877f2;
    background: radial-gradient(circle at center, #ffffff 42%, transparent 46%);
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 1;
    vertical-align: middle;
    margin-left: 3px;
}

.message-match-item p {
    margin: 0 0 8px;
    color: var(--dash-muted);
    font-size: 12px;
}

.message-match-item span {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.message-match-item b {
    padding: 3px 8px;
    border-radius: 999px;
    color: #8b6873;
    background: #f6dfe7;
    font-size: 10px;
    font-weight: 400;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 1180px) {
    .dashboard-shell {
        grid-template-columns: 1fr;
        padding: 26px 17px 104px;
    }

    .profile-body .dashboard-shell {
        grid-template-columns: 1fr;
        padding: 26px 17px 104px;
    }

    .edit-profile-body .dashboard-shell {
        display: block;
        padding: 49px 17px 57px;
    }

    .edit-profile-body .dash-sidebar,
    .edit-profile-body .dash-topbar {
        display: none;
    }

    .edit-mobile-head {
        min-height: 29px;
        margin-bottom: 28px;
        display: grid;
        grid-template-columns: 34px 1fr 34px;
        align-items: center;
    }

    .edit-mobile-head a {
        width: 30px;
        height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #212121;
        border-radius: 50%;
        color: #212121;
        font-size: 17px;
    }

    .edit-mobile-head h1 {
        margin: 0;
        font-family: var(--font-body);
        font-size: 20px;
        font-weight: 700;
        line-height: 1;
        text-align: center;
    }

    .edit-profile-title-row {
        display: none;
    }

    .edit-profile-card {
        min-height: 0;
        display: block;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .edit-photo-panel {
        padding: 0 0 45px;
        border-right: 0;
        text-align: center;
    }

    .edit-main-avatar {
        width: 204px;
        height: 242px;
        margin: 0 auto;
        padding: 8px;
        border: 1px solid rgba(255, 255, 255, .9);
        border-radius: 16px;
        background: rgba(255, 255, 255, .25);
    }

    .edit-main-avatar img,
    .edit-main-avatar::after {
        inset: 8px;
        border-radius: 12px;
    }

    .edit-main-avatar span {
        bottom: 32px;
        font-size: 17px;
    }

    .edit-photo-panel p {
        margin: 18px auto 0;
        max-width: 225px;
        font-size: 18px;
        line-height: 1.45;
    }

    .edit-section {
        margin: 0 -17px;
        padding: 30px 20px 31px;
        border-bottom: 1px solid #dbd8da;
    }

    .edit-personal-info {
        padding-top: 0;
    }

    .edit-section h3 {
        margin-bottom: 26px;
        font-size: 16px;
    }

    .edit-field {
        margin-bottom: 20px;
    }

    .edit-field label {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .edit-field input,
    .edit-field select,
    .edit-field textarea,
    .edit-about-grid select {
        min-height: 46px;
        border-radius: 7px;
        padding-inline: 11px;
        font-size: 14px;
    }

    .edit-field textarea {
        min-height: 81px;
        padding-top: 14px;
        line-height: 1.8;
    }

    .edit-date-grid {
        gap: 10px;
    }

    .edit-question {
        margin-bottom: 14px;
        font-size: 16px;
    }

    .edit-interest-row {
        gap: 9px 8px;
    }

    .edit-interest-row button {
        min-height: 47px;
        padding-inline: 12px;
        font-size: 14px;
    }

    .edit-interest-row .add-interest {
        min-width: 163px;
        font-size: 16px;
    }

    .edit-photo-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 19px;
    }

    .edit-photo-grid .my-profile-photo,
    .edit-photo-grid .my-profile-add-photo {
        width: 100%;
        height: auto;
        min-height: 192px;
        aspect-ratio: 1 / 1.19;
        border-radius: 12px;
    }

    .edit-photo-grid .my-profile-add-photo {
        font-size: 18px;
    }

    .delete-photo {
        margin-top: 11px;
        font-size: 16px;
    }

    .edit-about-section {
        padding-bottom: 31px;
    }

    .edit-about-grid {
        gap: 12px;
    }

    .edit-about-grid label {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 10px;
        font-size: 16px;
    }

    .edit-about-grid select {
        min-height: 46px;
        font-size: 15px;
    }

    .edit-profile-actions {
        display: none;
    }

    .edit-mobile-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 31px auto 0;
        max-width: 305px;
    }

    .edit-mobile-actions .edit-btn {
        min-width: 0;
        min-height: 40px;
    }

    .dash-topbar .dash-actions {
        display: none !important;
    }

    .dash-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 90;
        display: block;
        width: min(84vw, 300px);
        min-width: 270px;
        height: 100dvh;
        min-height: 0;
        padding: 16px 18px 24px;
        overflow-y: auto;
        border-radius: 0 18px 18px 0;
        box-shadow: 18px 0 48px rgba(18, 18, 18, .16);
        transform: translateX(-105%);
        opacity: .98;
        transition: transform .38s cubic-bezier(.22, 1, .36, 1), box-shadow .38s ease;
        will-change: transform;
    }

    .is-sidebar-open .dash-sidebar {
        transform: translateX(0);
        box-shadow: 24px 0 58px rgba(18, 18, 18, .22);
    }

    .dash-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 80;
        display: block;
        border: 0;
        background: rgba(0, 0, 0, .58);
        opacity: 0;
        visibility: hidden;
        transition: opacity .32s ease, visibility .32s ease;
    }

    .is-sidebar-open .dash-sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .is-sidebar-open {
        overflow: hidden;
    }

    .dash-brand,
    .dash-nav,
    .premium-box {
        display: none;
    }

    .dash-drawer-user,
    .dash-drawer-nav {
        display: flex;
    }

    .dash-drawer-user {
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 26px;
        opacity: 0;
        transform: translateX(-12px);
        transition: opacity .28s ease .12s, transform .28s ease .12s;
        min-width: 0;
        width: 100%;
    }

    .is-sidebar-open .dash-drawer-user {
        opacity: 1;
        transform: translateX(0);
    }

    .dash-drawer-profile {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
        text-decoration: none;
    }

    .dash-drawer-profile span {
        display: flex;
        flex-direction: column;
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }

    .dash-drawer-profile img {
        width: 39px;
        height: 39px;
        flex: 0 0 auto;
        border-radius: 50%;
        object-fit: cover;
    }

    .dash-drawer-profile strong {
        display: block;
        color: #212121;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dash-drawer-profile small {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        margin-top: 4px;
        color: var(--primary-color);
        font-size: 11px;
        font-weight: 500;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dash-drawer-profile small i {
        width: 15px;
        height: 15px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #fff;
        background: var(--primary-color);
        font-size: 8px;
    }

    .dash-drawer-close {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
        border: 1px solid #d8d8d8;
        border-radius: 50%;
        color: #6d696d;
        background: #fff;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform .2s ease, border-color .2s ease, color .2s ease;
    }

    .dash-drawer-close:hover,
    .dash-drawer-close:active {
        transform: scale(.94);
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .dash-drawer-nav {
        flex-direction: column;
    }

    .dash-drawer-eyebrow {
        margin: 0 0 12px;
        color: #c0bdc0;
        font-size: 12px;
        font-weight: 500;
        line-height: 1;
        text-transform: uppercase;
    }

    .dash-drawer-nav a {
        min-height: 34px;
        display: flex;
        align-items: center;
        gap: 11px;
        color: #5d595d;
        font-size: 14px;
        font-weight: 400;
        position: relative;
        opacity: 0;
        transform: translateX(-10px);
        transition: opacity .24s ease, transform .24s ease, color .2s ease, background-color .2s ease;
    }

    .dash-drawer-nav a:hover,
    .dash-drawer-nav a:active {
        color: var(--primary-color);
    }

    .dash-drawer-nav a:hover i,
    .dash-drawer-nav a:active i {
        color: var(--primary-color);
    }

    .is-sidebar-open .dash-drawer-nav a {
        opacity: 1;
        transform: translateX(0);
    }

    .is-sidebar-open .dash-drawer-nav a:nth-of-type(1) {
        transition-delay: .16s;
    }

    .is-sidebar-open .dash-drawer-nav a:nth-of-type(2) {
        transition-delay: .19s;
    }

    .is-sidebar-open .dash-drawer-nav a:nth-of-type(3) {
        transition-delay: .22s;
    }

    .is-sidebar-open .dash-drawer-nav a:nth-of-type(4) {
        transition-delay: .25s;
    }

    .is-sidebar-open .dash-drawer-nav a:nth-of-type(5) {
        transition-delay: .28s;
    }

    .is-sidebar-open .dash-drawer-nav a:nth-of-type(6) {
        transition-delay: .31s;
    }

    .is-sidebar-open .dash-drawer-nav a:nth-of-type(7) {
        transition-delay: .34s;
    }

    .dash-drawer-nav a i {
        width: 16px;
        color: #5d595d;
        font-size: 14px;
        text-align: center;
    }

    .dash-drawer-nav a b {
        width: 13px;
        height: 13px;
        margin-left: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #fff;
        background: var(--primary-color);
        font-size: 8px;
        line-height: 1;
    }

    .dash-drawer-upgrade {
        min-height: 51px !important;
        margin: 13px 2px 20px 0;
        padding: 0 12px;
        border-radius: 8px;
        gap: 7px;
        color: #4f4449 !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        background: url("../images/modals/premium-banner.png") center / 100% 100% no-repeat;
        box-shadow: 0 11px 26px rgba(34, 24, 29, .08);
    }

    .dash-drawer-upgrade::before {
        content: "";
        width: 24px;
        height: 24px;
        flex: 0 0 auto;
        background: url("../images/modals/modal-credits-coin.png") center / contain no-repeat;
    }

    .dash-drawer-upgrade i {
        display: none;
    }

    .dash-drawer-upgrade+.dash-drawer-eyebrow,
    .dash-drawer-logout {
        padding-top: 21px;
        border-top: 1px solid #eeeeef;
    }

    .dash-drawer-logout {
        margin-top: 22px;
        color: var(--primary-color) !important;
    }

    .dash-drawer-logout i {
        color: var(--primary-color) !important;
    }

    .dash-main {
        padding: 0;
    }

    .dash-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding-top: max(14px, env(safe-area-inset-top, 14px));
        padding-bottom: 8px;
        margin-bottom: 16px;
        position: relative;
        z-index: 60;
    }

    .dash-menu-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border: 0;
        color: var(--dash-ink, #0f172a);
        background: transparent;
        font-size: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
    }

    .dash-mobile-brand {
        margin-right: auto;
        display: flex;
        align-items: center;
    }

    .dash-mobile-brand img {
        height: 28px;
        width: auto;
        max-width: 115px;
        object-fit: contain;
    }

    .dash-mobile-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    .dash-mobile-actions .credits-balance-pill {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        height: 36px;
        min-height: 36px;
        padding: 0 10px;
        border-radius: 999px;
        background: #ffffff;
        border: 1.5px solid #fed7aa;
        color: #334155;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
        box-shadow: 0 2px 6px rgba(251, 146, 60, 0.12);
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .dash-mobile-actions .credits-balance-pill .coin-icon {
        font-size: 16px;
        line-height: 1;
    }

    .dash-mobile-actions .credits-balance-pill strong {
        font-size: 13px;
        color: #ea580c;
        font-weight: 800;
    }

    .dash-mobile-actions .daily-claim-btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        height: 36px;
        min-height: 36px;
        padding: 0 10px;
        border-radius: 999px;
        background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
        color: #78350f;
        font-size: 12px;
        font-weight: 800;
        border: none;
        cursor: pointer;
        white-space: nowrap;
        box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
    }

    .dash-mobile-actions .upgrade-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-width: auto;
        height: 36px;
        min-height: 36px;
        padding: 0 12px 0 6px;
        border-radius: 999px;
        background: linear-gradient(135deg, #ff4458 0%, #ff2a54 100%);
        color: #ffffff;
        font-size: 12px;
        font-weight: 700;
        text-decoration: none;
        box-shadow: 0 2px 8px rgba(255, 68, 88, 0.25);
        white-space: nowrap;
    }

    .dash-mobile-actions .upgrade-pill i {
        width: 26px;
        height: 26px;
        min-width: 26px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.25);
        font-size: 12px;
        color: #ffffff;
        margin: 0;
    }

    .dash-mobile-actions .circle-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        min-height: 36px;
        min-width: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.95);
        border: 1.5px solid #fed7aa;
        color: #475569;
        font-size: 16px;
        text-decoration: none;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
        position: relative;
    }

    .dash-mobile-actions .circle-action .notif-badge-bubble {
        position: absolute;
        top: -3px;
        right: -3px;
        background: #ff4458;
        color: #ffffff;
        font-size: 9px;
        font-weight: 800;
        min-width: 16px;
        height: 16px;
        border-radius: 9999px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 3px;
        border: 1.5px solid #ffffff;
        box-shadow: 0 2px 4px rgba(255, 68, 88, 0.35);
        line-height: 1;
    }

    @media (max-width: 390px) {
        .dash-mobile-actions .upgrade-pill .mobile-upgrade-text {
            display: none;
        }

        .dash-mobile-actions .upgrade-pill {
            padding: 0;
            width: 36px;
            justify-content: center;
        }

        .dash-mobile-actions .upgrade-pill i {
            background: transparent;
            font-size: 15px;
        }
    }

    .dash-topbar {
        display: block;
        margin-bottom: 20px;
    }

    .dash-topbar h1 {
        font-size: 24px;
        line-height: 1.25;
        font-weight: 700;
        margin: 0;
    }

    .dash-topbar p {
        margin-top: 6px;
        font-size: 14px;
        color: var(--dash-muted, #64748b);
    }

    .dash-topbar .dash-actions {
        display: none !important;
    }

    .dash-grid {
        display: block;
    }

    .dash-section-title {
        margin: 0 0 23px;
    }

    .dash-section-title h2 {
        font-size: 21px;
    }

    .discover-grid {
        display: flex;
        gap: 12px;
        margin: 0 -17px;
        padding: 0 17px 33px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 17px;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        cursor: grab;
        touch-action: pan-x pan-y;
        user-select: none;
        -webkit-user-select: none;
    }

    .discover-grid.is-dragging {
        cursor: grabbing;
        scroll-snap-type: none;
        scroll-behavior: auto;
    }

    .discover-grid::-webkit-scrollbar {
        display: none;
    }

    .discover-grid img,
    .mobile-match-strip img,
    .likes-slider__track img,
    .someone-photo-track img {
        -webkit-user-drag: none;
        user-drag: none;
        pointer-events: none;
    }

    .profile-card {
        flex: 0 0 min(76vw, 234px);
        min-height: 312px;
        scroll-snap-align: start;
        scroll-snap-stop: normal;
    }

    .profile-card:hover {
        transform: none;
        box-shadow: 0 10px 26px rgba(31, 24, 28, .08);
    }

    .profile-card:hover .profile-card__photo {
        transform: none;
    }

    .dash-sidecards {
        padding-top: 0;
        gap: 16px;
    }

    .completeness-card {
        width: calc(100% + 34px);
        min-height: 208px;
        padding: 20px;
        margin: 0 -17px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .completeness-card>h3 {
        margin-bottom: 12px;
    }

    .completeness-content {
        display: flex;
        gap: 16px;
        align-items: center;
        text-align: left;
    }

    .completeness-circle {
        width: 112px;
        height: 112px;
        margin: 0;
    }

    .profile-page-grid {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .profile-page-grid .dash-sidecards {
        width: 100%;
        order: -1;
    }

    .profile-page-grid .completeness-card {
        width: 100%;
        min-height: 168px;
        padding: 20px 19px;
        margin: 0;
        border-radius: 17px;
    }

    .profile-page-grid .completeness-card>h3 {
        margin-bottom: 14px;
        font-size: 16px;
    }

    .profile-page-grid .completeness-content {
        flex-direction: row;
        gap: 15px;
        text-align: left;
    }

    .profile-page-grid .completeness-circle {
        width: 101px;
        height: 101px;
    }

    .profile-page-grid .completeness-info h4 {
        white-space: normal;
    }

    .profile-page-grid .complete-btn {
        display: none;
    }

    .my-profile-card {
        min-height: 0;
        overflow: visible;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .my-profile-cover {
        height: 128px;
        border-radius: 13px;
    }

    .my-profile-summary {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        text-align: center;
    }

    .my-profile-avatar {
        width: 154px;
        height: 182px;
        margin-top: -94px;
        padding: 7px;
        border-radius: 13px;
    }

    .my-profile-avatar img,
    .my-profile-avatar::after {
        border-radius: 9px;
    }

    .my-profile-avatar::after {
        inset: 7px;
    }

    .my-profile-avatar span {
        bottom: 19px;
        font-size: 14px;
    }

    .my-profile-copy {
        width: 100%;
        padding-top: 19px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .my-profile-heading {
        display: contents;
    }

    .my-profile-heading>div {
        display: contents;
    }

    .my-profile-heading h2 {
        order: 1;
        margin-bottom: 10px;
        font-size: 25px;
    }

    .my-profile-heading h2 i {
        font-size: 19px;
    }

    .my-profile-heading p {
        order: 3;
        margin-top: 12px;
        font-size: 16px;
    }

    .my-profile-copy .profile-chip-row {
        order: 4;
        justify-content: center;
        margin: 10px 0 0;
    }

    .my-profile-bio {
        order: 2;
        max-width: 366px;
        margin: 12px auto 0;
        font-size: 16px;
        line-height: 1.45;
    }

    .my-profile-edit {
        order: 5;
        min-height: 49px;
        margin-top: 25px;
        padding-right: 18px;
    }

    .my-profile-tabs {
        margin: 35px 3px 34px;
        justify-content: center;
        gap: 83px;
    }

    .my-profile-tabs button {
        min-width: 60px;
        min-height: 43px;
        text-align: center;
        font-size: 16px;
    }

    .my-profile-photos {
        padding: 0 3px 0;
    }

    .my-profile-photos.is-active {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .my-profile-photo,
    .my-profile-add-photo {
        width: 100%;
        height: auto;
        min-height: 216px;
        aspect-ratio: 1 / 1.16;
        border-radius: 14px;
    }

    .my-profile-photo span {
        top: 7px;
        right: 10px;
    }

    .my-profile-add-photo {
        font-size: 20px;
    }

    .my-profile-add-photo small {
        top: 50%;
        left: 50%;
        margin: -10px 0 0 19px;
    }

    .my-profile-about {
        padding: 0 8px 18px;
    }

    .my-profile-about dl {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .my-profile-about dl div {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 18px;
        align-items: baseline;
    }

    .my-profile-about dt,
    .my-profile-about dd {
        font-size: 16px;
    }

    .my-profile-about dd {
        text-align: right;
    }

    .my-profile-interests {
        display: block;
        margin-top: 29px;
    }

    .my-profile-interests h3 {
        margin-bottom: 18px;
        font-size: 16px;
    }

    .my-profile-interests .profile-chip-row {
        justify-content: flex-start;
        gap: 12px 13px;
    }

    .my-profile-interests .profile-chip-row span {
        min-width: 77px;
    }

    .someone-profile-body .someone-sidecards {
        display: none;
    }

    .someone-profile-body .someone-profile-card {
        padding-bottom: 0;
    }

    .someone-profile-body .someone-profile-avatar {
        width: 154px;
        height: 182px;
        margin-top: -88px;
    }

    .someone-profile-body .my-profile-tabs {
        margin-top: 29px;
        margin-bottom: 26px;
    }

    .someone-profile-body .someone-profile-photos {
        padding: 0 0 0;
    }

    .someone-profile-body .someone-profile-photos.is-active {
        display: block;
    }

    .someone-profile-body .someone-photo-track {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        overflow: visible;
        scroll-snap-type: none;
    }

    .someone-profile-body .someone-profile-photos img {
        flex: none;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1.16;
        border-radius: 10px;
        scroll-snap-align: none;
    }

    .someone-profile-body .someone-photo-next {
        display: none;
    }

    .someone-profile-body .someone-profile-about {
        padding-inline: 7px;
    }

    .edit-profile-body .edit-mobile-head {
        margin-bottom: 28px;
    }

    .edit-profile-body .edit-main-avatar {
        width: 204px;
        height: 242px;
        margin: 0 auto;
        padding: 8px;
    }

    .edit-profile-body .edit-main-avatar img,
    .edit-profile-body .edit-main-avatar::after {
        inset: 8px;
        border-radius: 12px;
    }

    .edit-profile-body .edit-main-avatar span {
        bottom: 32px;
    }

    .edit-profile-body .edit-field input,
    .edit-profile-body .edit-field select,
    .edit-profile-body .edit-field textarea,
    .edit-profile-body .edit-about-grid select,
    .edit-profile-body .edit-interest-row button,
    .edit-profile-body .my-profile-add-photo {
        min-width: 0;
    }

    .edit-profile-body .edit-section {
        overflow: visible;
    }

    .edit-profile-body .edit-about-grid label {
        min-width: 0;
    }

    .edit-profile-body .edit-field,
    .edit-profile-body .edit-question,
    .edit-profile-body .edit-interest-row,
    .edit-profile-body .edit-photo-grid,
    .edit-profile-body .edit-about-grid {
        width: 100%;
        max-width: 390px;
        margin-left: auto;
        margin-right: auto;
    }

    .edit-profile-body .edit-photo-grid {
        grid-template-columns: repeat(2, 162px);
        justify-content: space-between;
        gap: 18px;
    }

    .edit-profile-body .edit-photo-grid .my-profile-photo,
    .edit-profile-body .edit-photo-grid .my-profile-add-photo {
        width: 162px;
        min-height: 193px;
    }

    .edit-profile-body .edit-about-grid label {
        grid-template-columns: 92px minmax(0, 294px);
    }

    .edit-mobile-head a span {
        display: block;
        margin-top: -2px;
        font-family: Arial, sans-serif;
        font-size: 30px;
        font-weight: 300;
        line-height: 1;
    }

    .likes-card {
        min-height: 120px;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        min-height: calc(76px + env(safe-area-inset-bottom, 0px));
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: 10px 6px calc(10px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--dash-line);
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 -10px 30px rgba(34, 24, 29, .08);
        backdrop-filter: blur(18px);
    }

    .mobile-bottom-nav a {
        display: grid;
        justify-items: center;
        gap: 7px;
        color: var(--dash-muted);
        font-size: 14px;
    }

    .mobile-bottom-nav i {
        font-size: 21px;
    }

    .mobile-bottom-nav a.active {
        color: var(--primary-color);
    }

    .messages-shell {
        padding: 26px 17px 91px;
    }

    .messages-main {
        padding: 0;
    }

    .messages-mobile-head {
        margin-bottom: 29px;
    }

    .messages-topbar {
        display: block;
        margin-bottom: 17px;
    }

    .messages-topbar h1 {
        font-size: 29px;
    }

    .messages-topbar p {
        margin-top: 10px;
        font-size: 16px;
    }

    .messages-layout {
        display: block;
    }

    .messages-list-card {
        min-height: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .messages-list-head {
        display: none;
    }

    .messages-search {
        margin: 0 0 27px;
        min-height: 43px;
        padding: 0 16px;
        border-radius: 13px;
    }

    .mobile-new-matches,
    .messages-mobile-title {
        display: block;
    }

    .mobile-new-matches {
        margin-bottom: 31px;
    }

    .mobile-new-matches h2,
    .messages-mobile-title {
        margin-bottom: 15px;
        font-size: 17px;
    }

    .mobile-match-strip {
        display: flex;
        gap: 15px;
        margin: 0 -17px;
        padding: 0 17px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 17px;
        -webkit-overflow-scrolling: touch;
        cursor: grab;
        touch-action: pan-x pan-y;
        user-select: none;
        -webkit-user-select: none;
    }

    .mobile-match-strip.is-dragging {
        cursor: grabbing;
        scroll-snap-type: none;
        scroll-behavior: auto;
    }

    .mobile-match-strip a {
        flex: 0 0 106px;
        color: var(--dash-ink);
        scroll-snap-align: start;
    }

    .mobile-match-strip span {
        width: 106px;
        height: 106px;
        display: block;
        position: relative;
        overflow: hidden;
        border-radius: 7px;
        background: #ddd;
    }

    .mobile-match-strip span::after {
        right: 0;
        top: 12px;
        width: 8px;
        height: 8px;
        border: 2px solid #fff;
    }

    .mobile-match-strip img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        cursor: pointer;
    }

    .mobile-match-strip strong {
        display: block;
        margin-top: 8px;
        font-size: 14px;
        font-weight: 500;
        text-align: center;
        white-space: nowrap;
    }

    .messages-chat-card,
    .messages-matches-card {
        display: none;
    }

    body.is-chat-open .dash-mobile-head,
    body.is-chat-open .messages-topbar,
    body.is-chat-open .dash-sidebar,
    body.is-chat-open .messages-list-card,
    .messages-shell:has(.messages-chat-card:target) .messages-mobile-head,
    .messages-shell:has(.messages-chat-card:target) .messages-topbar,
    .messages-layout:has(.messages-chat-card:target) .messages-list-card {
        display: none !important;
    }

    body.is-chat-open .messages-chat-card,
    .messages-chat-card:target {
        min-height: 100dvh;
        height: 100dvh;
        display: flex !important;
        flex-direction: column;
        border: 0;
        border-radius: 0;
        background: #ffffff;
        box-shadow: none;
        backdrop-filter: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        z-index: 999;
    }

    .messages-matches-card {
        width: auto;
        margin-left: 0;
    }

    body.is-chat-open .mobile-bottom-nav,
    body.is-chat-open~.mobile-bottom-nav,
    .messages-layout:has(.messages-chat-card:target)~.mobile-bottom-nav,
    .messages-shell:has(.messages-chat-card:target) .mobile-bottom-nav {
        display: none !important;
    }

    body.is-chat-open .messages-chat-head,
    .messages-chat-card:target .messages-chat-head {
        min-height: 80px;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(33, 33, 33, .06);
        background: #fff;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .messages-chat-back {
        width: 36px;
        height: 36px;
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: var(--dash-ink);
        border: 1px solid #EEEEEE;
        background: #fff;
        font-size: 16px;
        text-decoration: none;
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    }

    body.is-chat-open .messages-chat-person,
    .messages-chat-card:target .messages-chat-person {
        gap: 10px;
        margin-right: auto;
        display: flex;
        align-items: center;
    }

    body.is-chat-open .messages-chat-person img,
    .messages-chat-card:target .messages-chat-person img {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        object-fit: cover;
    }

    body.is-chat-open .messages-chat-person strong,
    .messages-chat-card:target .messages-chat-person strong {
        color: #000929;
        font-size: 16px;
        line-height: 1.1;
        display: block;
    }

    body.is-chat-open .messages-chat-person small,
    .messages-chat-card:target .messages-chat-person small {
        margin-top: 4px;
        color: #a6a1a6;
        font-size: 12px;
        line-height: 1;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    body.is-chat-open .messages-chat-person small i,
    .messages-chat-card:target .messages-chat-person small i {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #27AE60;
        display: inline-block;
    }

    body.is-chat-open .messages-chat-actions,
    .messages-chat-card:target .messages-chat-actions {
        gap: 18px;
        display: flex;
        align-items: center;
    }

    body.is-chat-open .messages-chat-actions a,
    .messages-chat-card:target .messages-chat-actions a {
        color: #1f1f1f;
        font-size: 20px;
        text-decoration: none;
    }

    body.is-chat-open .messages-chat-body,
    .messages-chat-card:target .messages-chat-body {
        flex: 1;
        padding: 17px 20px 14px;
        gap: 14px;
        overflow-y: auto;
        background: #ffffff;
    }

    body.is-chat-open .chat-row p,
    .messages-chat-card:target .chat-row p {
        max-width: min(68vw, 285px);
        padding: 10px 14px;
        font-size: 13px;
        line-height: 1.35;
    }

    body.is-chat-open .chat-row.wide p,
    .messages-chat-card:target .chat-row.wide p {
        max-width: min(76vw, 320px);
    }

    body.is-chat-open .messages-compose,
    .messages-chat-card:target .messages-compose {
        min-height: 80px;
        display: flex !important;
        flex: 0 0 80px;
        padding: 10px 16px 24px;
        align-items: center;
        gap: 10px;
        background: #ffffff;
        border-top: 1px solid #F4F4F4;
        position: relative;
        z-index: 2;
    }

    body.is-chat-open .messages-compose-field,
    .messages-chat-card:target .messages-compose-field {
        min-height: 52px;
        padding: 0 8px 0 15px;
        gap: 10px;
        border-radius: 50px;
        background: #F4F6F8;
    }

    body.is-chat-open .messages-compose-field button,
    .messages-chat-card:target .messages-compose-field button {
        width: 36px;
        height: 36px;
        background: #212121;
        color: #ffffff;
        border-radius: 50%;
        font-size: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        cursor: pointer;
    }

    body.is-chat-open .messages-compose-field .gift-toggle,
    .messages-chat-card:target .messages-compose-field .gift-toggle {
        width: 22px;
        height: 22px;
        color: #6d696d;
        background: transparent;
        font-size: 18px;
    }

    body.is-chat-open .messages-compose>button,
    .messages-chat-card:target .messages-compose>button {
        width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #3a373a;
        font-size: 20px;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    body.is-chat-open .messages-compose-field input,
    .messages-chat-card:target .messages-compose-field input {
        font-size: 14px;
        border: none;
        background: transparent;
        outline: none;
        flex: 1;
    }

    body.is-chat-open .messages-compose-field input::placeholder,
    .messages-chat-card:target .messages-compose-field input::placeholder {
        color: #b8b2b8;
    }

    body.is-chat-open .gift-panel,
    .messages-chat-card:target .gift-panel {
        left: 20px;
        right: 20px;
        top: auto;
        bottom: 85px;
        max-height: 360px;
        padding: 15px 18px 20px;
        border-color: rgba(33, 33, 33, .08);
        border-radius: 16px;
        box-shadow: 0 14px 36px rgba(33, 33, 33, .10);
    }

    body.is-chat-open .gift-panel__head,
    .messages-chat-card:target .gift-panel__head {
        margin-bottom: 17px;
        gap: 12px;
    }

    body.is-chat-open .gift-balance,
    .messages-chat-card:target .gift-balance {
        gap: 7px;
    }

    body.is-chat-open .gift-balance img,
    .messages-chat-card:target .gift-balance img {
        width: 36px;
        height: 36px;
    }

    body.is-chat-open .gift-balance small,
    .messages-chat-card:target .gift-balance small {
        font-size: 12px;
    }

    body.is-chat-open .gift-balance strong,
    .messages-chat-card:target .gift-balance strong {
        font-size: 16px;
    }

    body.is-chat-open .gift-panel__head>button,
    .messages-chat-card:target .gift-panel__head>button {
        min-width: 114px;
        min-height: 32px;
        padding: 0 15px;
        font-size: 14px;
    }

    body.is-chat-open .gift-grid,
    .messages-chat-card:target .gift-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px 13px;
    }

    body.is-chat-open .gift-grid button,
    .messages-chat-card:target .gift-grid button {
        min-height: 113px;
        padding: 8px 7px 10px;
        border-radius: 5px;
    }

    body.is-chat-open .gift-grid button img,
    .messages-chat-card:target .gift-grid button img {
        width: 66px;
        height: 66px;
        margin-bottom: 8px;
    }

    body.is-chat-open .gift-grid button span,
    .messages-chat-card:target .gift-grid button span {
        font-size: 13px;
    }

    .message-thread-list {
        margin: 0 -17px;
    }

    .message-thread {
        min-height: 68px;
        padding: 10px 17px;
        background: transparent;
    }

    .message-thread.active,
    .message-thread:hover {
        background: transparent;
    }

    .message-avatar {
        width: 50px;
        height: 50px;
    }

    .message-thread-copy strong {
        margin-bottom: 6px;
        font-size: 15px;
    }

    .message-thread-copy small {
        max-width: 245px;
        font-size: 14px;
    }

    .message-thread time {
        margin-top: 5px;
        font-size: 12px;
    }
}

@media (max-width: 430px) {
    .dashboard-shell {
        padding-inline: 17px;
    }


    .dash-section-title a,
    .mini-card__title span,
    .mini-card__title a {
        font-size: 14px;
    }

    .profile-card {
        flex-basis: 234px;
    }

    .mini-card {
        padding-inline: 16px;
    }

    .likes-slider__track {
        gap: 5px;
    }

    .likes-slider__track a,
    .likes-slider__track img {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
    }

    .likes-slider__next {
        width: 50px;
        height: 50px;
    }
}

/* Settings page */
.settings-mobile-head {
    display: none;
}

.settings-page-body .dash-topbar {
    margin-bottom: 45px;
}

.settings-title-row {
    margin-bottom: 26px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.settings-title-row h2 {
    margin: 0 0 7px;
    color: #212121;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
}

.settings-title-row p {
    margin: 0;
    color: #474747;
    font-size: 16px;
}

.settings-actions {
    display: flex;
    gap: 11px;
}

.settings-btn {
    min-width: 102px;
    min-height: 41px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
}

.settings-btn-outline {
    border: 1px solid #212121;
    color: #212121;
    background: transparent;
}

.settings-btn-dark {
    border: 1px solid #1a1a1a;
    color: #ffffff;
    background: #1a1a1a;
}

.settings-card {
    min-height: 1547px;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 15px;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 20px 48px rgba(34, 24, 29, .05);
    position: relative;
    overflow: visible;
}

.settings-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 305px;
    width: 1px;
    background: #dbd8da;
}

.settings-section {
    display: grid;
    grid-template-columns: 306px minmax(0, 1fr);
    border-bottom: 1px solid #dbd8da;
    position: relative;
}

.settings-section:last-child {
    border-bottom: 0;
}

.settings-section h3 {
    margin: 0;
    padding: 45px 20px 0 35px;
    color: var(--primary-color);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.settings-fields {
    min-width: 0;
    padding: 42px 64px 44px 40px;
    display: grid;
    gap: 28px;
}

.settings-section-account {
    min-height: 478px;
}

.settings-section-security {
    min-height: 208px;
}

.settings-section-preferences {
    min-height: 214px;
    z-index: 20;
}

.settings-section-notifications {
    min-height: 445px;
}

.settings-section-delete,
.settings-section-discovery {
    min-height: 202px;
    grid-template-columns: 306px minmax(0, 1fr) 235px;
    align-items: start;
}

.settings-section-delete .settings-delete-copy,
.settings-section-discovery .settings-delete-copy {
    padding: 48px 32px 42px 40px;
}

.settings-section-delete .settings-delete-btn,
.settings-section-discovery .settings-reset-btn {
    align-self: start;
    margin: 49px 40px 0 0;
}

.settings-field {
    display: grid;
    grid-template-columns: 161px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    color: #212121;
    font-size: 16px;
    font-weight: 500;
}

.settings-field>span:first-child b {
    color: var(--primary-color);
}

.settings-field-stack {
    align-items: start;
}

.settings-field input,
.settings-field select,
.settings-field .velori-select__button {
    width: 100%;
    min-height: 46px;
    border: 1px solid #dedcde;
    border-radius: 8px;
    color: #474747;
    background: #ffffff;
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
}

.settings-field input {
    padding: 0 13px;
}

.settings-field input::placeholder {
    color: #6a666a;
    opacity: 1;
}

.settings-date-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.settings-segment {
    display: grid;
    gap: 10px;
}

.settings-segment-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-segment-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-segment label {
    min-width: 0;
}

.settings-segment input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-segment span {
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid transparent;
    border-radius: 999px;
    color: #474747;
    background: #f8dfe8;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
}

.settings-segment input:checked+span {
    border-color: var(--primary-color);
    background: #fff0f4;
}

.settings-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #212121;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.settings-gender-check {
    margin-top: 18px;
}

.settings-checkbox input,
.settings-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-checkbox>span {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid #b9b9b9;
    border-radius: 2px;
    background: #ffffff;
}

.settings-checkbox input:checked+span {
    border-color: #515151;
    background: #515151;
}

.settings-checkbox input:checked+span::before {
    content: "\F26E";
    color: #ffffff;
    font-family: "bootstrap-icons";
    font-size: 15px;
    line-height: 1;
}

.settings-password {
    position: relative;
    display: block;
}

.settings-password input {
    padding-right: 48px;
}

.settings-password-toggle {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 26px;
    height: 26px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 0;
    color: #474747;
    background: transparent;
    cursor: pointer;
}

.settings-password-toggle i {
    font-size: 22px;
    line-height: 1;
}

.settings-notify-group {
    display: grid;
    gap: 19px;
}

.settings-notify-group-more {
    margin-top: 16px;
}

.settings-notify-head {
    display: grid;
    grid-template-columns: 161px 45px 1fr;
    gap: 11px;
    align-items: center;
    color: #212121;
    font-size: 16px;
    font-weight: 500;
}

.settings-notify-head b {
    font-size: 16px;
    font-weight: 500;
}

.settings-switch {
    width: 45px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.settings-switch>span {
    width: 45px;
    height: 24px;
    border-radius: 999px;
    background: #dedcde;
    position: relative;
    transition: background-color .2s ease;
}

.settings-switch>span::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform .2s ease;
}

.settings-switch input:checked+span {
    background: var(--primary-color);
}

.settings-switch input:checked+span::after {
    transform: translateX(21px);
}

.settings-option-check {
    margin-left: 205px;
    gap: 11px;
}

.settings-option-check em {
    display: grid;
    gap: 6px;
    font-style: normal;
}

.settings-option-check strong {
    color: #212121;
    font-size: 16px;
    font-weight: 700;
}

.settings-option-check small {
    color: #474747;
    font-size: 14px;
    line-height: 1.45;
}

.settings-delete-copy h4 {
    margin: 0 0 9px;
    color: #212121;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
}

.settings-delete-copy p {
    max-width: 450px;
    margin: 0;
    color: #474747;
    font-size: 14px;
    line-height: 1.38;
}

.settings-delete-btn {
    min-width: 189px;
    min-height: 41px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: #ff3834;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
}

.settings-reset-btn {
    min-width: 195px;
    min-height: 41px;
    padding: 0 18px;
    border: 1.5px solid var(--primary-color);
    border-radius: 999px;
    color: var(--primary-color);
    background: #ffffff;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color .2s ease, color .2s ease, transform .15s ease;
}

.settings-reset-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-1px);
}

@media (max-width: 1180px) {

    .settings-page-body,
    body.settings-page-body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .settings-page-body .dashboard-shell {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100vh;
        padding: 0 16px calc(96px + env(safe-area-inset-bottom, 0px)) !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .settings-page-body .dash-main,
    .settings-main,
    .settings-form,
    .settings-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .settings-page-body .dash-sidebar,
    .settings-page-body .dash-topbar,
    .settings-title-row {
        display: none !important;
    }

    .settings-page-body .dash-main {
        padding: 0 !important;
    }

    .settings-page-body::before {
        display: none !important;
    }

    .settings-mobile-head {
        min-height: 70px;
        display: grid;
        grid-template-columns: 38px 1fr 38px;
        align-items: center;
        padding: 10px 0;
        width: 100%;
        box-sizing: border-box;
    }

    .settings-mobile-head a {
        width: 31px;
        height: 31px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #474747;
        border-radius: 50%;
        color: #212121;
        font-size: 17px;
    }

    .settings-mobile-head h1 {
        margin: 0;
        font-family: var(--font-body);
        font-size: 20px;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
    }

    .settings-card {
        min-height: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        width: 100% !important;
    }

    .settings-card::before {
        display: none !important;
    }

    .settings-section {
        display: block !important;
        border-bottom: 1px solid #dbd8da !important;
        min-height: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        grid-template-columns: none !important;
    }

    .settings-section h3 {
        padding: 0;
        margin: 0 0 20px;
        font-size: 16px;
    }

    .settings-fields {
        padding: 0;
        gap: 24px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .settings-section-account {
        padding-bottom: 24px;
    }

    .settings-section-security,
    .settings-section-preferences,
    .settings-section-notifications,
    .settings-section-delete,
    .settings-section-discovery {
        padding: 20px 0 20px !important;
        display: block !important;
        grid-template-columns: none !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .settings-section-delete .settings-delete-copy,
    .settings-section-discovery .settings-delete-copy {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .settings-section-delete .settings-delete-btn,
    .settings-section-discovery .settings-reset-btn {
        margin: 18px 0 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .settings-field {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        font-size: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .settings-field input,
    .settings-field select,
    .settings-field .velori-select__button {
        min-height: 46px;
        font-size: 15px;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .settings-date-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .settings-date-grid input {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .settings-segment {
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .settings-segment-three {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .settings-segment label {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .settings-segment span {
        min-height: 42px !important;
        font-size: 14px !important;
        padding: 0 4px !important;
        box-sizing: border-box !important;
    }

    .settings-gender-check {
        margin-top: 14px;
        font-size: 14px;
    }

    .settings-notify-group {
        gap: 16px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .settings-notify-head {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .settings-notify-head>span {
        flex: 1;
        min-width: 0;
    }

    .settings-option-check {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .settings-option-check em {
        min-width: 0;
        flex: 1;
    }

    .settings-option-check strong {
        font-size: 15px;
    }

    .settings-option-check small {
        font-size: 13px;
        line-height: 1.4;
    }

    .settings-delete-copy h4 {
        font-size: 17px;
    }

    .settings-delete-copy p {
        max-width: none;
        font-size: 13px;
        line-height: 1.45;
    }

    .settings-delete-btn,
    .settings-reset-btn {
        min-width: 0 !important;
        width: 100% !important;
        min-height: 44px !important;
        box-sizing: border-box !important;
    }
}

/* Customer Service and Terms pages */
.service-mobile-head {
    display: none;
}

.support-page-body .dash-topbar,
.legal-page-body .dash-topbar {
    margin-bottom: 41px;
}

.service-hero,
.terms-hero {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: url("../images/modals/profile-banner.png") center / cover no-repeat;
}

.service-hero {
    min-height: 216px;
    padding: 49px 44px 45px;
    display: grid;
    justify-items: center;
    align-content: start;
}

.service-hero h2,
.terms-hero h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 400;
    line-height: 1.1;
    color: #212121;
}

.service-search {
    width: min(100%, 550px);
    min-height: 50px;
    margin-top: 24px;
    padding: 0 19px 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
}

.service-search span {
    width: 43px;
    height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background: #1a1a1a;
    font-size: 20px;
}

.service-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #212121;
    background: transparent;
    font-family: var(--font-body);
    font-size: 16px;
}

.service-search input::placeholder {
    color: #212121;
    opacity: 1;
}

.service-layout {
    margin-top: 42px;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}

.service-assist {
    display: grid;
    gap: 22px;
    position: sticky;
    top: 24px;
}

.service-language-card,
.service-contact-card,
.service-faq-card,
.terms-toc {
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 20px;
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 18px 42px rgba(34, 24, 29, .055);
}

.service-language-card {
    min-height: 133px;
    padding: 31px 15px 24px;
}

.service-language-card label {
    display: block;
    margin: 0 0 11px;
    color: #212121;
    font-size: 16px;
    font-weight: 500;
}

.service-contact-card {
    min-height: 238px;
    padding: 32px 21px;
    display: flex;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    background:
        url("../images/modals/modal-popup-bg.png") right bottom / 160px 65px no-repeat,
        linear-gradient(120deg, rgba(255, 255, 255, .8) 0%, rgba(255, 240, 246, .76) 62%, rgba(255, 213, 227, .82) 100%);
}

.service-contact-card h3 {
    margin: 0 0 10px;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #212121;
    text-decoration: underline;
}

.service-contact-card p {
    margin: 0;
    color: #474747;
    font-size: 16px;
}

.service-contact-card img {
    position: absolute;
    right: 15px;
    bottom: 37px;
    width: 150px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 11px 18px rgba(225, 81, 130, .22));
}

.service-faq {
    display: grid;
    gap: 20px;
}

.service-faq>h2,
.service-transparency-title {
    margin: 0 0 -1px;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 700;
    color: #212121;
}

.service-faq-card {
    min-height: 340px;
    padding: 38px 43px;
    display: grid;
    align-content: start;
    gap: 25px;
}

.service-faq-card--short {
    min-height: 177px;
}

.service-faq-card h3,
.terms-toc h3 {
    margin: 0;
    color: var(--primary-color);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    text-decoration: underline;
}

.service-faq-card a {
    color: #474747;
    font-size: 16px;
    line-height: 1.35;
    text-decoration: underline;
}

.service-transparency-title {
    margin-top: 25px;
}

.terms-hero {
    min-height: 256px;
    padding: 52px 93px 44px;
    text-align: center;
}

.terms-hero h2 {
    margin-bottom: 16px;
}

.terms-hero p {
    max-width: 915px;
    margin: 0 auto;
    color: #474747;
    font-size: 16px;
    line-height: 1.7;
    text-decoration: underline;
}

.terms-layout {
    margin-top: 24px;
    display: grid;
    grid-template-columns: 344px minmax(0, 1fr);
    gap: 35px;
    align-items: start;
}

.terms-toc {
    padding: 32px 25px 44px 23px;
    position: sticky;
    top: 24px;
}

.terms-toc h3 {
    margin-bottom: 23px;
    text-decoration: none;
}

.terms-toc ol,
.terms-toc ul {
    margin: 0;
    padding-left: 17px;
    color: #474747;
    font-size: 14px;
    line-height: 1.75;
}

.terms-toc ul {
    padding-left: 21px;
}

.terms-toc a {
    color: #474747;
    text-decoration: underline;
}

.terms-content {
    padding: 13px 0 80px;
    color: #474747;
}

.terms-content section {
    margin-bottom: 25px;
}

.terms-content h2 {
    margin: 0 0 13px;
    color: #212121;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.terms-content h3 {
    margin: 18px 0 12px;
    color: #212121;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
}

.terms-content p,
.terms-content li,
.terms-price-table {
    color: #474747;
    font-size: 16px;
    line-height: 1.55;
}

.terms-content p {
    margin: 0 0 12px;
}

.terms-content ul,
.terms-content ol {
    margin: 8px 0 18px;
    padding-left: 24px;
}

.terms-price-table {
    width: 100%;
    margin: 26px 0 27px;
    border-collapse: collapse;
}

.terms-price-table th {
    color: #212121;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
}

.terms-price-table th,
.terms-price-table td {
    padding: 8px 10px 8px 0;
    vertical-align: top;
}

@media (max-width: 1180px) {

    .support-page-body .dashboard-shell,
    .legal-page-body .dashboard-shell {
        display: block;
        width: 100%;
        min-height: 100vh;
        padding: 0 16px 54px;
    }

    .support-page-body .dash-sidebar,
    .legal-page-body .dash-sidebar,
    .support-page-body .dash-topbar,
    .legal-page-body .dash-topbar {
        display: none;
    }

    .support-page-body .dash-main,
    .legal-page-body .dash-main {
        padding: 0;
    }

    .support-page-body::before,
    .legal-page-body::before {
        display: none;
    }

    .service-mobile-head {
        min-height: 100px;
        display: grid;
        grid-template-columns: 38px 1fr 38px;
        align-items: center;
    }

    .service-mobile-head a {
        width: 31px;
        height: 31px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #474747;
        border-radius: 50%;
        color: #212121;
        font-size: 17px;
    }

    .service-mobile-head h1 {
        margin: 0;
        font-family: var(--font-body);
        font-size: 20px;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
    }

    .service-hero {
        min-height: 158px;
        padding: 28px 20px 27px;
        border-radius: 8px;
    }

    .service-hero h2,
    .terms-hero h2 {
        font-size: 28px;
    }

    .service-search {
        min-height: 50px;
        margin-top: 22px;
        padding-left: 5px;
    }

    .service-search span {
        width: 43px;
        height: 43px;
    }

    .service-layout {
        margin-top: 32px;
        display: block;
    }

    .service-assist {
        gap: 22px;
        position: static;
    }

    .service-language-card {
        min-height: 131px;
        padding: 29px 15px 24px;
        border-radius: 15px;
    }

    .service-language-card label {
        margin-bottom: 11px;
        font-size: 16px;
    }

    .service-contact-card {
        min-height: 158px;
        margin-top: 23px;
        padding: 34px 20px;
        border-radius: 19px;
    }

    .service-contact-card img {
        right: 21px;
        bottom: 20px;
        width: 155px;
        height: 120px;
    }

    .service-faq {
        margin-top: 31px;
        gap: 20px;
    }

    .service-faq>h2,
    .service-transparency-title {
        margin-left: 12px;
        font-size: 18px;
    }

    .service-faq-card {
        min-height: 0;
        padding: 34px 26px;
        border-radius: 17px;
        gap: 22px;
    }

    .service-faq-card h3,
    .terms-toc h3 {
        font-size: 16px;
    }

    .service-faq-card a {
        font-size: 16px;
        line-height: 1.55;
    }

    .service-transparency-title {
        margin-top: 9px;
    }

    .terms-hero {
        min-height: 231px;
        padding: 29px 12px 28px;
        border-radius: 8px;
    }

    .terms-hero h2 {
        margin-bottom: 11px;
        font-size: 25px;
    }

    .terms-hero p {
        font-size: 12px;
        line-height: 1.55;
    }

    .terms-layout {
        margin-top: 11px;
        display: block;
    }

    .terms-toc {
        padding: 25px 17px 26px;
        border-radius: 8px;
        position: static;
    }

    .terms-toc h3 {
        margin-bottom: 14px;
        font-size: 13px;
    }

    .terms-toc ol,
    .terms-toc ul {
        font-size: 12px;
        line-height: 1.75;
    }

    .terms-content {
        padding: 37px 0 32px;
    }

    .terms-content section {
        margin-bottom: 17px;
    }

    .terms-content h2 {
        margin-bottom: 9px;
        font-size: 14px;
    }

    .terms-content h3 {
        margin: 14px 0 8px;
        font-size: 13px;
    }

    .terms-content p,
    .terms-content li,
    .terms-price-table {
        font-size: 12px;
        line-height: 1.55;
    }

    .terms-content ul,
    .terms-content ol {
        padding-left: 22px;
    }

    .terms-price-table th,
    .terms-price-table td {
        padding: 8px 8px 8px 0;
        line-height: 1.18;
    }
}

/* ==========================================================================
   MODALS & POPUPS (Credits Modal, Profile Dropdown, Notification Popup)
   ========================================================================== */

/* 1. CREDITS MODAL / UPGRADE ACCOUNT MODAL */
.modal-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 246, 250, .72);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    overscroll-behavior: contain;
}

.modal-backdrop-custom.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.modal-backdrop-custom.is-open {
    opacity: 1;
    visibility: visible;
}

.credits-modal-card {
    background: #ffffff;
    border-radius: 36px;
    width: 100%;
    max-width: 980px;
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
    position: relative;
    transform: scale(0.96) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.modal-backdrop-custom.is-open .credits-modal-card {
    transform: scale(1) translateY(0);
}

.credits-modal-header {
    position: relative;
    min-height: 175px;
    border-radius: 36px 36px 0 0;
    overflow: hidden;
    padding: 52px 80px 32px;
    background-image: linear-gradient(rgba(26, 26, 26, 0.65), rgba(26, 26, 26, 0.75)), url('../images/modals/banner.jpg');
    background-position: center, center 65%;
    background-size: cover, cover;
    background-repeat: no-repeat;
    color: #ffffff;
    box-sizing: border-box;
}

.credits-modal-header .crown-icon {
    position: absolute;
    top: 22px;
    left: 32px;
    width: 56px;
    height: 56px;
    display: block;
    background: url("../images/modals/modal-credits-coin.png") center / contain no-repeat;
}

.credits-modal-header h2 {
    font-family: var(--font-heading, "Playfair Display", Georgia, serif);
    font-size: 36px;
    font-weight: 400;
    margin: 0 0 6px;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.credits-modal-header p {
    margin: 0;
    font-size: 16.5px;
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-body, "Figtree", sans-serif);
}

.credits-modal-header p strong {
    color: #ffffff;
    font-weight: 700;
}

.credits-modal-close {
    position: absolute;
    top: 28px;
    right: 32px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #212121;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.credits-modal-close:hover {
    background: #f1f5f9;
    transform: rotate(90deg);
}

/* Modal Navigation Tabs Bar */
.credits-modal-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 40px;
    background: #fafafa;
    border-bottom: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

.credits-modal-tabs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.modal-tab-pill {
    padding: 9px 22px;
    border-radius: 25px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.modal-tab-pill.active {
    border-color: #EF295F;
    background: #EF295F;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 41, 95, 0.3);
}

.credits-modal-user-bal {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.user-balance-text {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.user-balance-val {
    color: #ea580c;
    font-size: 15px;
    font-weight: 800;
}

.modal-daily-claim-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.15s ease;
}

.modal-daily-claim-btn:hover {
    transform: scale(1.03);
}

/* Modal Body Grid */
.credits-modal-body {
    padding: 24px 38px 20px;
    box-sizing: border-box;
}

.modal-plans-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 32px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

.pricing-tier-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.pricing-tier-card {
    min-height: auto;
    border-radius: 18px;
    padding: 16px 20px;
    background: #fdf5f8;
    border: 1.5px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    width: 100%;
}

.pricing-tier-card:hover,
.pricing-tier-card.is-selected {
    background: url("../images/modals/premium-banner.png") center / 100% 100% no-repeat !important;
    border-color: #EF295F;
    box-shadow: 0 8px 24px rgba(239, 41, 95, 0.16);
}

.pricing-tier-card.is-popular {
    background: #fdf5f8;
    box-shadow: 0 8px 24px rgba(34, 24, 29, 0.08);
}

/* CRITICAL: padding-right ensures title and /month NEVER collide with the badge! */
.pricing-tier-card h4 {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 700;
    color: #212121;
    font-family: var(--font-body, "Figtree", sans-serif);
    line-height: 1.25;
    padding-right: 125px;
}

.pricing-tier-card h4 small {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
}

.pricing-tier-card .tier-desc {
    margin: 0 0 12px;
    font-size: 13.5px;
    color: #666666;
}

.pricing-tier-card .tier-pricing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    font-weight: 500;
    color: #212121;
}

.pricing-tier-card .tier-pricing strong {
    color: #EF295F;
    font-size: 15px;
    font-weight: 700;
}

.popular-badge {
    position: absolute;
    top: 14px;
    right: 18px;
    background: #EF295F;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 11px;
    border-radius: 50px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    z-index: 3;
}

.modal-continue-btn {
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
    padding: 12px 20px;
    background: #1A1A1A;
    color: #ffffff;
    border: none;
    border-radius: 100px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    text-align: center;
    display: block;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.modal-continue-btn:hover {
    background: #000000;
    transform: translateY(-1px);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.credits-features-col {
    width: 100%;
    box-sizing: border-box;
}

.credits-features-col h3 {
    font-family: var(--font-heading, "Playfair Display", Georgia, serif);
    font-size: 23px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.credits-features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.credit-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
}

.credit-feature-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #EF295F !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 17px !important;
    flex-shrink: 0 !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(239, 41, 95, 0.28) !important;
}

.credit-feature-icon i {
    color: #ffffff !important;
    font-size: 17px !important;
    background: transparent !important;
}

.credit-feature-text {
    flex: 1;
    min-width: 0;
}

.credit-feature-text h5 {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 700;
    color: #212121;
    font-family: var(--font-body, "Figtree", sans-serif);
    line-height: 1.3;
}

.credit-feature-text p {
    margin: 0;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.4;
}

.credits-modal-footer {
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    line-height: 1.5;
    background: #fafafa;
    border-radius: 0 0 36px 36px;
}

/* Buy Only Credits Grid */
.credit-bundles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.credit-bundle-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px 12px 16px;
    text-align: center;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
}

.credit-bundle-card:hover {
    border-color: #EF295F;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(239, 41, 95, 0.12);
}

.credit-bundle-card.is-popular {
    border: 1.5px solid #EF295F;
    background: linear-gradient(180deg, #fff5f6 0%, #ffffff 100%);
    box-shadow: 0 8px 24px rgba(239, 41, 95, 0.15);
}

.credit-bundle-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #EF295F;
    color: #fff;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 9.5px;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.credit-bundle-icon {
    width: 38px;
    height: 38px;
    margin: 0 auto 8px;
    display: block;
}

.credit-bundle-crown {
    font-size: 32px;
    color: #f59e0b;
    margin: 0 auto 8px;
    display: block;
}

.credit-bundle-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
}

.credit-bundle-subtitle {
    font-size: 11px;
    color: #64748b;
    margin: 0 0 10px;
}

.credit-bundle-price {
    font-size: 18px;
    font-weight: 800;
    color: #EF295F;
    margin-bottom: 12px;
}

.credit-bundle-btn {
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.credit-bundle-btn:hover {
    background: #EF295F;
}

/* =========================================================
   Responsive Mobile Media Queries for Upgrade Credits Modal
   ========================================================= */
@media (max-width: 860px) {
    .credits-modal-card {
        width: 95% !important;
        max-width: 520px !important;
        max-height: calc(100vh - 40px) !important;
        border-radius: 24px !important;
        margin: auto !important;
    }

    .credits-modal-header {
        padding: 40px 18px 20px !important;
        min-height: 140px !important;
        border-radius: 24px 24px 0 0 !important;
        background-position: center, center 50% !important;
    }

    .credits-modal-header h2 {
        font-size: 24px !important;
        margin-bottom: 4px !important;
    }

    .credits-modal-header p {
        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    .credits-modal-header .crown-icon {
        top: 12px !important;
        left: 16px !important;
        width: 40px !important;
        height: 40px !important;
    }

    .credits-modal-close {
        top: 14px !important;
        right: 14px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }

    .credits-modal-nav-bar {
        padding: 10px 16px !important;
        gap: 8px !important;
    }

    .modal-tab-pill {
        padding: 6px 14px !important;
        font-size: 12px !important;
    }

    .credits-modal-user-bal {
        width: 100% !important;
        justify-content: space-between !important;
        margin-left: 0 !important;
        padding-top: 2px !important;
        font-size: 12px !important;
    }

    .credits-modal-body {
        padding: 18px 16px !important;
    }

    /* 1-column single stack for plans & features on mobile */
    .modal-plans-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .pricing-tier-card {
        padding: 14px 16px !important;
        border-radius: 16px !important;
    }

    .pricing-tier-card h4 {
        font-size: 17px !important;
        padding-right: 105px !important;
    }

    .popular-badge {
        top: 12px !important;
        right: 14px !important;
        font-size: 10px !important;
        padding: 3px 9px !important;
    }

    .tier-pricing strong {
        font-size: 14px !important;
    }

    .modal-continue-btn {
        min-height: 42px !important;
        font-size: 13px !important;
    }

    /* 2-column grid for credit bundles on mobile */
    .credit-bundles-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }

    .credit-bundle-card {
        padding: 14px 10px 12px !important;
        border-radius: 14px !important;
    }

    .credit-bundle-icon {
        width: 32px !important;
        height: 32px !important;
        margin-bottom: 6px !important;
    }

    .credit-bundle-title {
        font-size: 14px !important;
    }

    .credit-bundle-price {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .credit-bundle-btn {
        padding: 7px !important;
        font-size: 11px !important;
    }

    .credits-features-col h3 {
        font-size: 19px !important;
        margin-bottom: 16px !important;
    }

    .credits-features-list {
        gap: 14px !important;
    }

    .credit-feature-item {
        gap: 12px !important;
    }

    .credit-feature-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 15px !important;
    }

    .credit-feature-text h5 {
        font-size: 14px !important;
    }

    .credit-feature-text p {
        font-size: 12.5px !important;
    }

    .credits-modal-footer {
        padding: 12px 16px !important;
        font-size: 11px !important;
        border-radius: 0 0 24px 24px !important;
    }
}

@media (max-width: 420px) {
    .credits-modal-card {
        width: 96% !important;
    }

    .credit-bundles-grid {
        gap: 8px !important;
    }

    .credit-bundle-card {
        padding: 10px 6px 10px !important;
    }

    .credit-bundle-title {
        font-size: 13px !important;
    }

    .credit-bundle-subtitle {
        font-size: 10px !important;
    }

    .credit-bundle-price {
        font-size: 15px !important;
    }
}

/* 2. PROFILE DROPDOWN */
.dash-user-wrapper {
    position: relative;
    z-index: 1302;
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 245px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(34, 24, 29, .12);
    border: 0;
    padding: 16px 0 12px;
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .22s ease;
    overscroll-behavior: contain;
}

.profile-dropdown-menu.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-user {
    text-align: center;
    padding: 0 18px 13px;
    border-bottom: 0;
    margin-bottom: 0;
}

.profile-dropdown-user img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    box-shadow: none;
}

.profile-dropdown-user h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #212121;
    font-family: var(--font-body);
}

.profile-dropdown-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.profile-dropdown-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 19px 0 23px;
    border-top: 1px solid #e1e1e1;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color .18s ease, color .18s ease;
}

.profile-dropdown-links a i {
    font-size: 12px;
    color: #999999;
}

.profile-dropdown-links a:hover {
    background: #FFF0F4;
    color: #EF295F;
}

.profile-dropdown-links a:hover i {
    color: #EF295F;
}

.profile-dropdown-logout {
    border-top: 1px solid #e1e1e1;
    margin-top: 0;
    padding-top: 0;
}

.profile-dropdown-logout a,
.profile-dropdown-logout button {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 23px;
    font-size: 16px;
    font-weight: 600;
    color: #EF295F;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color .18s ease;
}

.profile-dropdown-logout a:hover,
.profile-dropdown-logout button:hover,
.profile-dropdown-logout button:focus-visible {
    background: #FFF0F4;
}

/* 3. NOTIFICATION POPUP PANEL */
.notif-popup-wrapper {
    position: relative;
    z-index: 1303;
}

.notif-popup-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 403px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(34, 24, 29, .12);
    border: 0;
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .22s ease;
    overflow: hidden;
    overscroll-behavior: contain;
}

.notif-popup-panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notif-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 21px 17px 14px 20px;
    border-bottom: 0;
}

.notif-popup-head h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #212121;
    font-family: var(--font-body);
}

.notif-popup-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #474747;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #444444;
    cursor: pointer;
    transition: background-color .18s ease;
}

.notif-popup-close:hover {
    background: #E4E4E4;
}

.notif-popup-tabs {
    display: flex;
    gap: 5px;
    padding: 0 20px 21px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.notif-tab-btn {
    border: none;
    background: transparent;
    min-width: 40px;
    min-height: 28px;
    padding: 4px 13px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    cursor: pointer;
    transition: all .18s ease;
}

.notif-tab-btn.is-active {
    background: #f4f4f4;
    color: #212121;
    box-shadow: none;
}

.notif-popup-list {
    max-height: 524px;
    overflow-y: auto;
    padding: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.notif-popup-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 104px;
    padding: 20px 17px 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    transition: background-color .18s ease;
}

.notif-popup-item:hover {
    background: #ffffff;
}

.notif-popup-item.is-unread {
    background: #ffffff;
}

.notif-item-avatar {
    position: relative;
    width: 49px;
    height: 49px;
    flex-shrink: 0;
}

.notif-item-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.notif-badge-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #EF295F;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    border: 2px solid #ffffff;
}

.notif-badge-icon.purple {
    background: #8E44AD;
}

.notif-badge-icon.orange {
    background: #E67E22;
}

.notif-badge-icon.green {
    background: #27AE60;
}

.notif-item-content {
    flex: 1;
    min-width: 0;
}

.notif-item-content h5 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 700;
    color: #212121;
    font-family: var(--font-body);
}

.notif-item-content h5 small {
    font-size: 14px;
    font-weight: 400;
    color: #888888;
    margin-left: 6px;
}

.notif-item-content p {
    margin: 0;
    font-size: 14px;
    color: #555555;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item-actions {
    display: flex;
    gap: 8px;
    margin-top: 13px;
}

.notif-action-btn {
    border: none;
    border-radius: 50px;
    min-width: 83px;
    min-height: 37px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .18s ease;
}

.notif-action-btn.ignore {
    background: #EEEEEE;
    color: #333333;
}

.notif-action-btn.reply {
    background: #1A1A1A;
    color: #ffffff;
}

.notif-unread-dot {
    position: absolute;
    top: 26px;
    right: 17px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #27AE60;
    flex-shrink: 0;
    margin-top: 0;
}

/* 4. NOTIFICATIONS DEDICATED PAGE & MOBILE HEAD */
.mobile-page-head {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #F0F0F0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-page-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #212121;
    font-family: var(--font-body);
}

.mobile-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #EEEEEE;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #212121;
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.notifications-page-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    margin-top: 10px;
    box-sizing: border-box;
}

.notifications-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.notifications-card-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
}

.notifications-card-subtitle {
    margin: 0;
    font-size: 13.5px;
    color: #64748b;
}

.notifications-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notifications-mark-read-btn {
    background: #fff1f2;
    color: #ff4458;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.notifications-mark-read-btn:hover {
    background: #ffe4e6;
    transform: translateY(-1px);
}

.notifications-page-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.notifications-page-tabs .notif-tab-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.18s ease;
}

.notifications-page-tabs .notif-tab-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.notifications-page-tabs .notif-tab-btn.is-active {
    background: #ff4458;
    color: #ffffff;
    border-color: #ff4458;
    box-shadow: 0 2px 8px rgba(255, 68, 88, 0.25);
}

.notifications-page-list {
    display: flex;
    flex-direction: column;
}

.notifications-page-list .notif-popup-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 8px;
    border: 1px solid #f1f5f9;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    transition: all 0.18s ease;
}

.notifications-page-list .notif-popup-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.notifications-page-list .notif-popup-item.is-unread {
    background: #fffafb;
    border-color: #ffe4e6;
}

@media (max-width: 991px) {
    .notifications-body {
        background: #f8fafc !important;
    }

    .notifications-body::before {
        display: none !important;
    }

    .notifications-body .dash-sidebar,
    .notifications-body .dash-topbar,
    .desktop-only-topbar {
        display: none !important;
    }

    .notifications-body .dashboard-shell {
        display: block !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 16px calc(96px + env(safe-area-inset-bottom, 0px)) !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .notifications-body .dash-main {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .mobile-page-head {
        min-height: calc(64px + env(safe-area-inset-top, 0px));
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        padding: max(12px, env(safe-area-inset-top, 12px)) 0 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-page-head h2 {
        font-size: 18px;
        font-weight: 800;
        text-align: center;
        margin: 0;
        color: #0f172a;
    }

    .mobile-back-btn {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 1px solid #e2e8f0;
        background: #ffffff;
        color: #0f172a;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    }

    .notifications-page-card {
        border-radius: 20px !important;
        box-shadow: 0 2px 14px rgba(0, 0, 0, 0.03) !important;
        margin-top: 4px !important;
        padding: 16px !important;
        background: #ffffff !important;
        border: 1px solid #f1f5f9 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .notifications-card-head {
        margin-bottom: 14px;
        padding-bottom: 12px;
        gap: 8px;
    }

    .notifications-card-title {
        font-size: 17px !important;
    }

    .notifications-card-subtitle {
        font-size: 12px !important;
    }

    .notifications-page-tabs {
        gap: 8px;
        margin-bottom: 14px;
    }

    .notifications-page-tabs .notif-tab-btn {
        padding: 6px 14px;
        font-size: 12px;
        border-radius: 10px;
    }

    .notifications-page-list .notif-popup-item {
        background: #ffffff;
        min-height: auto;
        padding: 13px 14px !important;
        gap: 12px;
        margin-bottom: 8px;
        border-radius: 14px;
    }

    .notifications-page-list .notif-item-avatar {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 768px) {
    .modal-backdrop-custom {
        align-items: flex-start;
        height: 100dvh;
        padding: 31px 12px max(31px, env(safe-area-inset-bottom));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .credits-modal-card {
        max-width: 406px;
        max-height: calc(100dvh - 62px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 22px;
    }

    .credits-modal-body {
        grid-template-columns: 1fr;
        gap: 31px;
        padding: 19px 22px 23px;
    }

    .credits-modal-header {
        min-height: 182px;
        border-radius: 22px 22px 0 0;
        padding: 65px 25px 28px;
        background-position: center, center 68%;
        background-size: auto, 145% auto;
    }

    .credits-modal-header .crown-icon {
        top: 22px;
        left: 16px;
        width: 52px;
        height: 52px;
    }

    .credits-modal-header h2 {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .credits-modal-header p {
        font-size: 18px;
        line-height: 1.42;
    }

    .credits-modal-close {
        top: 38px;
        right: 26px;
        width: 43px;
        height: 43px;
        font-size: 23px;
    }

    .pricing-tier-list {
        gap: 14px;
    }

    .pricing-tier-card {
        min-height: 140px;
        padding: 20px 27px;
    }

    .pricing-tier-card h4 {
        font-size: 20px;
    }

    .pricing-tier-card .tier-desc {
        margin-bottom: 22px;
    }

    .modal-continue-btn {
        min-height: 39px;
        margin-top: 0;
    }

    .credits-features-col {
        padding: 0 7px;
    }

    .credits-features-col h3 {
        margin-bottom: 25px;
        font-size: 28px;
        line-height: 1.15;
    }

    .credits-features-list {
        gap: 27px;
    }

    .credit-feature-item {
        gap: 18px;
    }

    .credit-feature-icon {
        width: 40px;
        height: 40px;
    }

    .credit-feature-text h5 {
        font-size: 20px;
        line-height: 1.2;
    }

    .credit-feature-text p {
        font-size: 16px;
    }

    .credits-modal-footer {
        min-height: 60px;
        padding: 11px 27px;
        font-size: 12px;
    }

    .notif-popup-panel {
        right: -10px;
        width: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .dash-nav a,
    .premium-box a,
    .dash-section-title a,
    .mini-card__title a,
    .upgrade-pill,
    .circle-action,
    .dash-user,
    .profile-card,
    .profile-card__photo,
    .tags span,
    .profile-card__actions button,
    .mini-card,
    .complete-btn,
    .likes-slider__next,
    .dash-drawer-user,
    .dash-drawer-nav a,
    .dash-sidebar,
    .dash-sidebar-backdrop {
        transition: none !important;
    }
}

/* Custom updates for messages and likes page */
.btn-open-msg {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-body);
}

.msg-status-new {
    color: var(--primary-color) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.msg-status-icon {
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 3px;
    display: inline-block;
}

@media (max-width: 991px) {
    .messages-search {
        border-radius: 30px !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
        min-height: 50px !important;
        margin: 10px 20px 20px !important;
    }
}

/* Subtle project-wide dashboard micro animations */
.dash-main,
.dash-sidebar,
.mobile-page-head,
.settings-card,
.edit-profile-card,
.my-profile-card,
.notifications-page-card,
.service-hero,
.terms-hero,
.service-layout,
.terms-layout,
.messages-layout,
.likes-main {
    animation: veloriPageSoftIn .55s ease-out both;
}

.dash-topbar,
.settings-title-row,
.edit-profile-title-row,
.dash-section-title {
    animation: veloriSoftDrop .5s ease-out both;
}

.profile-card,
.mini-card,
.like-blur-card,
.service-language-card,
.service-contact-card,
.service-faq-card,
.terms-toc,
.terms-content section,
.settings-section,
.edit-section,
.notif-popup-item,
.thread-item,
.notice-item,
.setting-row,
.my-profile-photo,
.my-profile-add-photo,
.someone-profile-photos img {
    animation: veloriCardIn .5s ease-out both;
}

.profile-card:nth-child(2),
.mini-card:nth-child(2),
.service-faq-card:nth-child(2),
.terms-content section:nth-child(2),
.settings-section:nth-child(2),
.edit-section:nth-child(2) {
    animation-delay: .06s;
}

.profile-card:nth-child(3),
.mini-card:nth-child(3),
.service-faq-card:nth-child(3),
.terms-content section:nth-child(3),
.settings-section:nth-child(3),
.edit-section:nth-child(3) {
    animation-delay: .1s;
}

.profile-card:nth-child(4),
.service-faq-card:nth-child(4),
.terms-content section:nth-child(4) {
    animation-delay: .14s;
}

.profile-card,
.mini-card,
.service-faq-card,
.service-language-card,
.service-contact-card,
.terms-toc,
.settings-card,
.edit-profile-card,
.my-profile-card,
.notifications-page-card,
.like-blur-card {
    transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease, background-color .26s ease;
}

.service-faq-card:hover,
.service-language-card:hover,
.service-contact-card:hover,
.terms-toc:hover,
.like-blur-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(34, 24, 29, .08);
}

.dash-nav a:hover i,
.dash-drawer-nav a:hover i,
.mobile-bottom-nav a:hover i,
.profile-dropdown-links a:hover i,
.notif-action-btn:hover,
.settings-password-toggle:hover i,
.someone-photo-next:hover i,
.my-profile-edit:hover span,
.complete-btn:hover span,
.likes-slider__next:hover i {
    transform: translateX(2px);
}

.dash-nav a i,
.dash-drawer-nav a i,
.mobile-bottom-nav a i,
.profile-dropdown-links a i,
.settings-password-toggle i,
.someone-photo-next i,
.my-profile-edit span,
.complete-btn span,
.likes-slider__next i {
    transition: transform .22s ease, color .22s ease;
}

.match-avatar:hover img,
.dash-user:hover img,
.my-profile-avatar:hover img,
.edit-main-avatar:hover img,
.likes-slider__track img:hover,
.someone-profile-photos img:hover {
    transform: scale(1.04);
}

.match-avatar img,
.dash-user img,
.my-profile-avatar img,
.edit-main-avatar img,
.likes-slider__track img,
.someone-profile-photos img {
    transition: transform .32s ease;
}

.settings-field input:focus,
.settings-field select:focus,
.edit-field input:focus,
.edit-field select:focus,
.edit-field textarea:focus,
.service-search input:focus,
.velori-select.is-open .velori-select__button {
    box-shadow: 0 0 0 4px rgba(239, 41, 95, .1);
}

.settings-switch input:checked+span,
.dark-checkbox input:checked,
.settings-option-check input:checked+span {
    animation: veloriTinyPop .2s ease-out;
}

.dark-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #b0b0b0;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.dark-checkbox:hover {
    color: #ffffff;
}

.dark-checkbox input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid #555555;
    border-radius: 4px;
    background: #202020;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    vertical-align: middle;
    transition: all 0.2s ease-in-out;
}

.dark-checkbox input:hover {
    border-color: var(--primary-color, #ff4458);
}

.dark-checkbox input:checked {
    background-color: var(--primary-color, #ff4458) !important;
    border-color: var(--primary-color, #ff4458) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 12px 12px !important;
    box-shadow: 0 0 8px rgba(255, 68, 88, 0.45);
}

.dark-checkbox input:focus-visible {
    outline: 2px solid var(--primary-color, #ff4458);
    outline-offset: 2px;
}

.completeness-circle circle.progress {
    animation: veloriProgressDraw 1s ease-out both;
}

.notif-unread-dot,
.msg-status-icon {
    animation: veloriPulseDot 1.8s ease-in-out infinite;
}

@keyframes veloriPageSoftIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes veloriSoftDrop {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes veloriCardIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes veloriTinyPop {
    50% {
        transform: scale(1.04);
    }
}

@keyframes veloriProgressDraw {
    from {
        stroke-dashoffset: 220;
    }
}

@keyframes veloriPulseDot {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 41, 95, .28);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(239, 41, 95, 0);
    }
}

/* Dating-app micro effects */
.profile-card__actions button {
    position: relative;
    overflow: visible;
}

.profile-card__actions button::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    border: 1px solid rgba(239, 41, 95, .34);
    opacity: 0;
    transform: scale(.72);
    pointer-events: none;
}

.profile-card__actions button.is-burst::after {
    animation: veloriActionBurst .5s ease-out;
}

.profile-card__actions button.is-liked {
    color: #ffffff;
    background: var(--dash-primary);
    animation: veloriHeartBeat .38s ease-out;
}

.profile-card__actions button.is-liked i {
    color: #ffffff;
}

.profile-card:hover .tags span {
    transform: translateY(-2px);
}

.profile-chip-row span,
.my-profile-interests span {
    transition: transform .24s ease, background-color .24s ease, color .24s ease, box-shadow .24s ease;
}

.profile-chip-row span:hover,
.my-profile-interests span:hover {
    transform: translateY(-2px);
    color: var(--dash-primary);
    background: rgba(239, 41, 95, .12);
    box-shadow: 0 10px 20px rgba(239, 41, 95, .08);
}

.chat-row {
    animation: veloriChatIn .32s ease-out both;
}

.chat-row.outgoing {
    transform-origin: right bottom;
}

.chat-row.incoming {
    transform-origin: left bottom;
}

.typing-indicator span {
    animation: veloriTypingBounce .95s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: .12s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: .24s;
}

.messages-compose button[type="submit"] i,
.btn-chat-send i {
    transition: transform .24s ease;
}

.messages-compose button[type="submit"]:hover i,
.btn-chat-send:hover i {
    transform: translate(2px, -2px) rotate(-8deg);
}

.messages-compose button[type="submit"]:active i,
.btn-chat-send:active i {
    animation: veloriSendFly .38s ease-out;
}

.pricing-tier-card {
    position: relative;
    overflow: hidden;
}

.pricing-tier-card:hover {
    border-top-color: var(--dash-primary);
    box-shadow: 0 16px 34px rgba(239, 41, 95, .12);
}

.pricing-tier-card:hover::after {
    opacity: 1;
}

.pricing-tier-card::before,
.popular-badge::after,
.upgrade-pill::before,
.modal-continue-btn::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 42px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: translateX(-120%) skewX(-18deg);
    pointer-events: none;
}

.pricing-tier-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--dash-primary);
    opacity: 0;
    transition: opacity .24s ease;
}

.pricing-tier-card:hover::before,
.popular-badge:hover::after,
.pricing-tier-card.is-popular .popular-badge::after,
.upgrade-pill:hover::before,
.modal-continue-btn:hover::before {
    animation: veloriShineSweep .75s ease-out;
}

.upgrade-pill,
.modal-continue-btn {
    position: relative;
    overflow: hidden;
}

.verified-icon,
i.bi-patch-check-fill {
    animation: veloriVerifiedSpark .28s ease-out both;
}

@keyframes veloriActionBurst {
    0% {
        opacity: .7;
        transform: scale(.72);
    }

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

@keyframes veloriHeartBeat {

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

    42% {
        transform: scale(1.16);
    }

    68% {
        transform: scale(.96);
    }
}

@keyframes veloriChatIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes veloriTypingBounce {

    0%,
    70%,
    100% {
        transform: translateY(0);
        opacity: .45;
    }

    35% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

@keyframes veloriSendFly {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    55% {
        transform: translate(7px, -7px) rotate(-14deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes veloriShineSweep {
    from {
        transform: translateX(-140%) skewX(-18deg);
    }

    to {
        transform: translateX(340%) skewX(-18deg);
    }
}

@keyframes veloriVerifiedSpark {
    50% {
        filter: drop-shadow(0 0 5px rgba(24, 119, 242, .38));
    }
}

@media (prefers-reduced-motion: reduce) {

    .dash-main,
    .dash-sidebar,
    .mobile-page-head,
    .settings-card,
    .edit-profile-card,
    .my-profile-card,
    .notifications-page-card,
    .service-hero,
    .terms-hero,
    .service-layout,
    .terms-layout,
    .messages-layout,
    .likes-main,
    .dash-topbar,
    .settings-title-row,
    .edit-profile-title-row,
    .dash-section-title,
    .profile-card,
    .mini-card,
    .like-blur-card,
    .service-language-card,
    .service-contact-card,
    .service-faq-card,
    .terms-toc,
    .terms-content section,
    .settings-section,
    .edit-section,
    .notif-popup-item,
    .thread-item,
    .notice-item,
    .setting-row,
    .my-profile-photo,
    .my-profile-add-photo,
    .someone-profile-photos img,
    .completeness-circle circle.progress,
    .notif-unread-dot,
    .msg-status-icon,
    .profile-card__actions button.is-burst::after,
    .profile-card__actions button.is-liked,
    .chat-row,
    .typing-indicator span,
    .messages-compose button[type="submit"]:active i,
    .btn-chat-send:active i,
    .pricing-tier-card:hover::before,
    .popular-badge:hover::after,
    .upgrade-pill:hover::before,
    .modal-continue-btn:hover::before,
    .verified-icon,
    i.bi-patch-check-fill {
        animation: none !important;
    }
}

.profile-dropdown-logout form {
    margin: 0;
}

.profile-dropdown-logout button {
    width: 100%;
    border: 0;
    background: transparent;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.dash-drawer-logout {
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.dash-drawer-logout button {
    width: 100%;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.profile-form-errors {
    margin: 0 0 20px;
    padding: 14px 18px;
    border: 1px solid #ef295f;
    border-radius: 8px;
    color: #b71949;
    background: #fff0f4;
}

.profile-form-errors ul {
    margin: 0;
    padding-left: 18px;
}

.profile-save-status {
    margin: 0 38px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #176b42;
    background: #e7f7ed;
}

.edit-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    color: #474747;
    cursor: pointer;
}

.edit-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.edit-choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.edit-choice {
    position: relative;
    cursor: pointer;
}

.edit-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.edit-choice span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid #dedcde;
    border-radius: 999px;
    color: #474747;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
}

.edit-choice input:checked+span {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fff0f4;
}

.edit-choice input:focus-visible+span {
    outline: 2px solid #ef295f;
    outline-offset: 2px;
}

/* chat-attachment-img rules are defined above with !important overrides */

.chat-attachment-video {
    display: block;
    max-width: 320px;
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    background: #000;
}

.chat-attachment-file {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    min-width: 220px;
    max-width: 320px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    color: #1e293b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.chat-attachment-file:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    color: var(--primary-color);
}

.chat-attachment-file i.bi-file-earmark-text {
    font-size: 24px;
    color: var(--primary-color);
}

/* Chat Image Lightbox Modal */
.chat-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.chat-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.chat-lightbox__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.chat-lightbox__content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-lightbox__img {
    max-width: 90vw;
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-lightbox.is-open .chat-lightbox__img {
    transform: scale(1);
}

.chat-lightbox__video {
    max-width: 90vw;
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    background: #000;
    outline: none;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-lightbox.is-open .chat-lightbox__video {
    transform: scale(1);
}

.chat-attachment-video-wrap {
    position: relative;
    display: inline-block;
    border-radius: 18px;
    overflow: hidden;
    max-width: 320px;
    width: 100%;
}

.chat-attachment-video-wrap .chat-attachment-video {
    display: block;
    width: 100%;
    margin: 0;
}

.chat-attachment-video-wrap .btn-video-expand {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, transform 0.15s ease;
    z-index: 5;
}

.chat-attachment-video-wrap .btn-video-expand:hover {
    background: rgba(15, 23, 42, 0.95);
    transform: scale(1.1);
}

.chat-attachment-video-wrap .btn-video-expand i {
    font-size: 13px;
    line-height: 1;
}

.chat-lightbox__close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
}

.chat-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.chat-lightbox__download {
    position: absolute;
    top: -48px;
    right: 50px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
}

.chat-lightbox__download:hover {
    background: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: scale(1.1);
}

/* Chat presence reflects the partner's last recorded activity. */
#chatPartnerStatus[data-online="false"] i {
    background: #94a3b8;
}

.message-avatar[data-online="false"]::after,
.mobile-match-strip span[data-online="false"]::after {
    background: #94a3b8;
}

#chatPartnerStatus[data-online="true"] i {
    background: #13c34f;
}

/* Keep mobile controls inside the viewport and clear of fixed navigation. */
.settings-mobile-actions {
    display: none;
}

@media (max-width: 1180px) {
    .dash-body .dashboard-shell {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }

    .dash-mobile-head {
        gap: 6px;
    }

    .dash-mobile-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .dash-mobile-brand img {
        width: 100%;
        max-width: 115px;
        height: auto;
    }

    .dash-mobile-actions {
        gap: 4px;
    }

    .dash-mobile-actions .credits-balance-pill {
        max-width: 100px;
        padding-inline: 7px;
    }

    .mobileCreditCount {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-bottom-nav {
        width: 100% !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        box-sizing: border-box !important;
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        z-index: 9999 !important;
    }

    .mobile-bottom-nav a {
        min-width: 0 !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 10px !important;
        gap: 3px !important;
        padding: 4px 1px !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
    }

    .mobile-bottom-nav a i {
        font-size: 19px !important;
        line-height: 1 !important;
    }

    .mobile-bottom-nav a span {
        max-width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 10px !important;
        line-height: 1.15 !important;
        text-align: center !important;
    }

    .settings-mobile-actions {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        padding: 20px 0;
    }

    .settings-mobile-actions .settings-btn {
        flex: 1;
        min-width: 0;
        min-height: 44px;
    }

    body.is-chat-open .messages-chat-head,
    .messages-chat-card:target .messages-chat-head {
        gap: 8px;
        padding: max(12px, env(safe-area-inset-top, 0px)) 12px 12px;
        min-height: 76px;
    }

    body.is-chat-open .messages-chat-person,
    .messages-chat-card:target .messages-chat-person {
        flex: 1;
        min-width: 0;
        gap: 8px;
    }

    .messages-chat-person>a {
        flex: 0 0 auto;
    }

    .messages-chat-person>span {
        min-width: 0;
    }

    body.is-chat-open .messages-chat-person strong,
    .messages-chat-card:target .messages-chat-person strong {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 14px;
        line-height: 1.4;
    }

    #chatPartnerNameLink {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #chatPartnerVerified {
        flex: 0 0 auto;
    }

    body.is-chat-open .messages-chat-person small,
    .messages-chat-card:target .messages-chat-person small {
        white-space: nowrap;
        line-height: 1.4;
        overflow: hidden;
    }

    #chatPartnerStatus i,
    #chatPartnerActivity {
        flex-shrink: 0;
    }

    #chatPartnerCity {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body.is-chat-open .messages-chat-actions,
    .messages-chat-card:target .messages-chat-actions {
        flex-shrink: 0;
        gap: 0;
    }

    body.is-chat-open .messages-chat-actions a,
    .messages-chat-card:target .messages-chat-actions a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 44px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .dash-mobile-actions .upgrade-pill {
        width: 36px;
        min-width: 36px;
        padding: 0;
        justify-content: center;
    }

    .dash-mobile-actions .upgrade-pill .mobile-upgrade-text,
    .dash-mobile-actions .daily-claim-btn span {
        display: none;
    }

    .dash-mobile-actions .daily-claim-btn {
        width: 36px;
        padding: 0;
        justify-content: center;
    }
}

.cms-plain-copy {
    white-space: pre-line;
}

.service-faq-card details {
    margin-block: 12px;
}

.service-faq-card summary {
    cursor: pointer;
}


/* Conversation settings and message counters */
.messages-chat-person {
    min-width: 0;
}

#chatPartnerAvatarLink {
    display: block;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
}

#chatPartnerAvatar {
    display: block;
    width: 43px;
    min-width: 43px;
    height: 43px;
    border-radius: 50%;
    object-fit: cover;
}

.message-avatar {
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.chat-settings {
    position: relative;
}

.chat-settings summary {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    cursor: pointer;
    list-style: none;
    font-size: 21px;
}

.chat-settings summary::-webkit-details-marker {
    display: none;
}

.chat-settings summary:focus-visible {
    outline: 2px solid #ff4458;
    border-radius: 8px;
}

.chat-settings-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 215px;
    padding: 6px;
    background: #fff;
    border: 1px solid #f0e5ea;
    border-radius: 12px;
    box-shadow: 0 8px 28px #23152120;
    z-index: 20;
}

.messages-chat-actions .chat-settings-menu button {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: auto;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    text-align: left;
    white-space: nowrap;
}

.chat-settings-menu button:hover {
    background: #fff0f4;
}

.chat-settings-menu button:disabled {
    opacity: .5;
    cursor: wait;
}

.thread-muted-icon {
    color: #98939a;
    font-size: 12px;
}

.message-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff2a65;
    color: white;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.message-unread-badge[hidden],
.thread-muted-icon[hidden] {
    display: none !important;
}

.dash-nav .message-unread-badge {
    margin-left: auto;
}

.message-count-link,
.mobile-bottom-nav a {
    position: relative;
}

.message-count-link .message-unread-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    border: 2px solid white;
}

.mobile-bottom-nav .message-unread-badge {
    position: absolute;
    top: 0;
    right: 12%;
}