:root {
    --navy: #080b18;
    --navy-2: #10162c;
    --ink: #151724;
    --muted: #6f7483;
    --surface: #ffffff;
    --surface-soft: #fff6fb;
    --line: #f0d8e4;
    --pink: #ff2e73;
    --pink-2: #ff6aa6;
    --rose: #ffe2ef;
    --cyan: #3abff8;
    --gold: #f6b73c;
    --shadow: 0 24px 70px rgba(8, 11, 24, .16);
    --pink-shadow: 0 18px 40px rgba(255, 46, 115, .32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(8, 11, 24, .98) 0, rgba(16, 22, 44, .96) 260px, rgba(255, 246, 251, 1) 261px, #f8fafc 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 5vw;
    color: #fff;
    background: rgba(8, 11, 24, .8);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 900;
    line-height: 1;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 13px;
    object-fit: cover;
    object-position: left center;
    box-shadow: 0 12px 26px rgba(255, 46, 115, .34);
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-link,
.logout-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 14px;
    color: rgba(255, 255, 255, .78);
    background: transparent;
    font-weight: 800;
}

.nav-badge,
.bottom-nav em {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    padding: 0 6px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--pink-2));
    box-shadow: 0 10px 22px rgba(255, 46, 115, .28);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.nav-link:hover,
.nav-link.active,
.logout-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

.nav-cta {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--pink-2));
    box-shadow: var(--pink-shadow);
}

.inline-form {
    display: inline-flex;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 106px;
}

.messages {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
}

.message {
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 34px rgba(8, 11, 24, .08);
    font-weight: 700;
}

.message.success {
    border-color: #9be7b6;
}

.message.error {
    border-color: #ffb1c9;
}

.message.warning {
    border-color: #ffd27a;
}

.landing-hero {
    position: relative;
    display: grid;
    align-content: end;
    min-height: 78svh;
    overflow: hidden;
    border-radius: 32px;
    padding: clamp(28px, 6vw, 72px);
    color: #fff;
    background-position: center;
    background-size: cover;
    box-shadow: var(--shadow);
}

.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 11, 24, .92) 0, rgba(8, 11, 24, .68) 44%, rgba(8, 11, 24, .34) 100%),
        linear-gradient(0deg, rgba(8, 11, 24, .72), rgba(8, 11, 24, .1));
}

.landing-content {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 46, 115, .28);
    border-radius: 999px;
    color: var(--pink);
    background: rgba(255, 246, 251, .94);
    font-size: 13px;
    font-weight: 900;
}

.landing-hero h1,
.page-title,
.section-title {
    margin: 0;
    letter-spacing: 0;
}

.landing-hero h1 {
    margin-top: 18px;
    max-width: 580px;
    font-size: clamp(46px, 9vw, 92px);
    line-height: .95;
    font-weight: 900;
}

.lead {
    max-width: 610px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, .84);
    font-size: clamp(16px, 2.3vw, 20px);
    line-height: 1.7;
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.proof-item {
    min-height: 82px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 24px;
    padding: 14px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px);
}

.proof-item strong {
    display: block;
    font-size: 20px;
}

.proof-item span {
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    font-weight: 700;
}

.actions,
.action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border: 0;
    border-radius: 17px;
    padding: 0 18px;
    font-weight: 900;
    line-height: 1.1;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--pink-2));
    box-shadow: var(--pink-shadow);
}

.btn-soft {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
}

.btn-dark {
    color: #fff;
    background: var(--navy);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
}

.gradient-text {
    color: var(--pink);
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    color: #fff;
}

.page-title {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1;
    font-weight: 900;
}

.page-head .muted {
    color: rgba(255, 255, 255, .72);
}

.section-title {
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.05;
    font-weight: 900;
}

.muted {
    color: var(--muted);
}

.card,
.panel {
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 28px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow);
}

.card {
    padding: 24px;
}

.panel-dark {
    color: #fff;
    border-color: rgba(255, 255, 255, .12);
    background: linear-gradient(180deg, #141a32, #090d1c);
}

.panel-dark .muted {
    color: rgba(255, 255, 255, .68);
}

.premium-card {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--pink), var(--pink-2));
    box-shadow: var(--pink-shadow);
}

.premium-card .muted {
    color: rgba(255, 255, 255, .86);
}

.premium-panel {
    border-radius: 24px;
    padding: 18px;
}

.feature-card {
    min-height: 180px;
}

.feature-icon,
.badge-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--pink-2));
    font-weight: 900;
}

.phone-frame {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 36px;
    background: linear-gradient(180deg, #111831, #080b18);
    box-shadow: 0 30px 90px rgba(8, 11, 24, .32);
}

.swipe-card {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: 28px;
    color: #fff;
    background: #151724;
}

.swipe-card.compact {
    min-height: 390px;
}

.swipe-card img,
.photo-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-fallback {
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(255, 46, 115, .92), rgba(58, 191, 248, .72)),
        linear-gradient(180deg, #2b3152, #10162c);
}

.photo-fallback::after {
    content: "HL";
    display: grid;
    place-items: center;
    width: 94px;
    height: 94px;
    border: 2px solid rgba(255, 255, 255, .52);
    border-radius: 32px;
    color: #fff;
    font-size: 34px;
    font-weight: 900;
}

.swipe-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 11, 24, .05) 28%, rgba(8, 11, 24, .85) 100%);
}

.profile-info {
    position: absolute;
    z-index: 1;
    right: 20px;
    bottom: 20px;
    left: 20px;
}

.profile-info h2 {
    margin: 10px 0 6px;
    font-size: clamp(28px, 6vw, 38px);
    line-height: 1.05;
}

.profile-info p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-weight: 700;
}

.match-badge,
.verify-badge,
.compat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    border-radius: 999px;
    padding: 0 11px;
    font-size: 12px;
    font-weight: 900;
}

.match-badge {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--pink-2));
}

.verify-badge {
    color: #0f5da8;
    background: #e8f6ff;
}

.compat {
    color: var(--pink);
    background: #fff;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 0 11px;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(12px);
    font-size: 12px;
    font-weight: 900;
}

.tile-body .tag,
.profile-summary .tag,
.card .tag-row .tag,
.score-panel .tag {
    color: var(--pink);
    background: var(--rose);
}

.profile-tile {
    overflow: hidden;
    padding: 0;
}

.tile-photo {
    position: relative;
    height: 310px;
    overflow: hidden;
    background: #151724;
}

.tile-photo img,
.tile-photo .photo-fallback {
    position: absolute;
}

.tile-body {
    padding: 18px;
}

.tile-body h2,
.tile-body h3,
.list-copy h3 {
    margin: 0;
}

.avatar {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--cyan));
    object-fit: cover;
}

.avatar.small {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
}

.avatar .photo-fallback {
    position: static;
}

.list-card,
.conversation-card,
.match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.list-left {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 14px;
}

.list-copy {
    min-width: 0;
}

.list-copy p {
    margin: 5px 0 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border-radius: 999px;
    padding: 0 12px;
    color: var(--pink);
    background: var(--rose);
    font-weight: 900;
    font-size: 13px;
}

.count-badge {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    padding: 0 7px;
    color: #fff;
    background: var(--pink);
    font-size: 12px;
    font-weight: 900;
}

.swipe-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
}

.circle-btn {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 50%;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 16px 36px rgba(8, 11, 24, .16);
    font-size: 28px;
    font-weight: 900;
}

.circle-btn.like {
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--pink-2));
    box-shadow: var(--pink-shadow);
}

.circle-btn.pass {
    color: var(--pink);
}

.circle-btn.info {
    color: #0f5da8;
}

.recommendation-stack {
    align-items: start;
}

.score-panel {
    display: grid;
    gap: 14px;
}

.score-number {
    font-size: clamp(42px, 8vw, 72px);
    font-weight: 900;
    line-height: 1;
}

.reason-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.form-shell,
.auth-shell {
    width: min(560px, 100%);
    margin: 26px auto;
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 24px;
    align-items: stretch;
}

.auth-visual {
    min-height: 540px;
    overflow: hidden;
    border-radius: 32px;
    background-position: center;
    background-size: cover;
}

.form-shell form,
.form-card,
.auth-shell form {
    display: grid;
    gap: 14px;
}

.form-shell p,
.auth-shell p,
.form-card p {
    margin: 0;
}

.form-shell label,
.auth-shell label,
.form-card label {
    display: block;
    margin-bottom: 7px;
    font-weight: 900;
}

.form-shell input,
.form-shell select,
.form-shell textarea,
.auth-shell input,
.auth-shell select,
.auth-shell textarea,
.form-card input,
.form-card select,
.form-card textarea,
.chat-input textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 13px 14px;
    color: var(--ink);
    background: #fff;
    outline: none;
}

.form-shell textarea,
.form-card textarea {
    resize: vertical;
}

.form-shell input:focus,
.form-shell select:focus,
.form-shell textarea:focus,
.auth-shell input:focus,
.auth-shell select:focus,
.auth-shell textarea:focus,
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus,
.chat-input textarea:focus {
    border-color: rgba(255, 46, 115, .66);
    box-shadow: 0 0 0 4px rgba(255, 46, 115, .12);
}

.helptext,
.errorlist {
    color: var(--muted);
    font-size: 13px;
}

.errorlist {
    margin: 0;
    padding-left: 18px;
    color: var(--pink);
    font-weight: 800;
}

.checkbox-grid #id_interests,
.form-shell #id_interests,
.form-card #id_interests {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    padding: 0;
    list-style: none;
}

.form-shell #id_interests label,
.form-card #id_interests label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 12px;
    background: #fff;
}

.form-shell #id_interests input,
.form-card #id_interests input {
    width: auto;
}

.profile-summary {
    display: grid;
    gap: 18px;
}

.photo-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

.photo-item {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
}

.photo-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.photo-item-body {
    padding: 14px;
}

.chat-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 18px;
    min-height: 72vh;
}

.conversation-list,
.chat-panel {
    overflow: hidden;
}

.conversation-list.card,
.chat-panel.card {
    padding: 0;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

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

.chat-person h2,
.chat-person h3 {
    margin: 0;
}

.online-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.online-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: calc(72vh - 156px);
    overflow: auto;
    padding: 20px;
    background: linear-gradient(180deg, #fff, #fff7fb);
}

.bubble {
    max-width: min(76%, 560px);
    border-radius: 22px 22px 22px 7px;
    padding: 12px 14px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 12px 24px rgba(8, 11, 24, .08);
    line-height: 1.55;
}

.bubble.mine {
    align-self: flex-end;
    border-radius: 22px 22px 7px 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--pink-2));
}

.bubble small {
    display: block;
    margin-top: 4px;
    color: currentColor;
    opacity: .68;
    font-size: 11px;
    text-align: right;
}

.chat-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.chat-input textarea {
    min-height: 50px;
    max-height: 130px;
    resize: vertical;
}

.empty-state {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 42px 20px;
    text-align: center;
}

.empty-state img {
    width: min(180px, 62vw);
}

.bottom-nav {
    display: none;
}

/* Authenticated app shell: shared dark/neon language for legacy app pages. */
body.app-authenticated {
    --app-bg: #050712;
    --app-panel: rgba(18, 22, 38, .78);
    --app-panel-strong: rgba(24, 28, 48, .92);
    --app-border: rgba(255, 255, 255, .1);
    --app-border-pink: rgba(255, 46, 115, .46);
    --app-text: #fbfbff;
    --app-muted: rgba(246, 239, 255, .68);
    --app-glow: 0 22px 70px rgba(255, 46, 115, .18);
    color: var(--app-text);
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 46, 115, .18), transparent 34%),
        radial-gradient(circle at 86% 18%, rgba(124, 58, 237, .16), transparent 32%),
        linear-gradient(135deg, #050712 0%, #080a17 52%, #11051b 100%);
}

body.app-authenticated::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 46, 115, .07) 0 1px, transparent 1px 100%),
        linear-gradient(180deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 100%);
    background-size: 120px 120px;
    opacity: .22;
}

body.app-authenticated .site-header {
    display: none;
}

.global-app-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: max(24px, calc((100vw - 1440px) / 2 + 24px));
    z-index: 50;
    display: flex;
    flex-direction: column;
    width: 260px;
    overflow: hidden auto;
    padding: 34px 22px;
    color: #fff;
    background:
        radial-gradient(circle at 0 0, rgba(255, 46, 115, .16), transparent 42%),
        rgba(5, 8, 22, .72);
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, .08);
    border-radius: 0;
    box-shadow: 24px 0 80px rgba(0, 0, 0, .22);
    backdrop-filter: blur(22px);
}

.global-app-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 40px;
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0;
}

.global-app-brand img {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 0 32px rgba(255, 46, 115, .38);
}

.global-app-menu {
    display: grid;
    gap: 10px;
}

.global-app-menu a,
.global-app-settings-link,
.global-app-logout button {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    min-height: 54px;
    border: 1px solid transparent;
    border-radius: 15px;
    padding: 0 14px;
    color: rgba(248, 251, 255, .62);
    background: transparent;
    font-size: 15px;
    font-weight: 850;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.global-app-menu a:hover,
.global-app-menu a.active,
.global-app-settings-link:hover,
.global-app-settings-link.active,
.global-app-logout button:hover {
    color: #fff;
    border-color: rgba(255, 46, 115, .7);
    background: linear-gradient(135deg, rgba(255, 46, 115, .28), rgba(255, 46, 115, .08));
    box-shadow: 0 20px 46px rgba(255, 46, 115, .16);
    transform: translateX(3px);
}

.global-app-menu img,
.global-app-settings-link img,
.global-app-logout img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 46, 115, .2));
}

.global-app-menu em {
    display: inline-grid;
    place-items: center;
    min-width: 23px;
    height: 23px;
    margin-left: auto;
    border-radius: 999px;
    padding: 0 7px;
    color: #fff;
    background: linear-gradient(135deg, #ff2e73, #ff66ad);
    box-shadow: 0 10px 22px rgba(255, 46, 115, .38);
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.global-app-premium {
    min-height: 280px;
    margin-top: auto;
    overflow: hidden;
    border: 1px solid rgba(255, 46, 115, .34);
    border-radius: 20px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(6, 8, 22, .78), rgba(6, 8, 22, .18)),
        url("/static/core/img/premium_box_left.97e67f026038.png") 58% 88% / 136% auto no-repeat;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.global-app-premium h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

.global-app-premium p {
    max-width: 190px;
    margin: 12px 0 18px;
    color: var(--app-muted);
    font-size: 14px;
    line-height: 1.55;
}

.global-app-premium a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 16px;
    padding: 0 20px;
    color: #fff;
    background: linear-gradient(135deg, #ff2e73, #ff4d8d);
    box-shadow: 0 18px 42px rgba(255, 46, 115, .34);
    font-size: 15px;
    font-weight: 900;
}

.global-app-mini-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 18px;
    color: #fff;
}

.global-app-mini-user img {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border: 2px solid rgba(255, 46, 115, .8);
    border-radius: 50%;
    object-fit: cover;
}

.global-app-mini-user span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.global-app-mini-user strong {
    overflow: hidden;
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-app-mini-user small {
    color: #ff4d8d;
    font-size: 14px;
}

.global-app-logout {
    margin-top: 14px;
}

.global-app-settings-link {
    margin-top: 14px;
}

.global-app-logout button {
    width: 100%;
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .035);
}

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

.settings-card {
    display: grid;
    align-content: start;
    gap: 14px;
}

.settings-card h2 {
    margin: 0;
    color: #fff;
    font-size: 24px;
}

.settings-card p {
    margin: 0;
    line-height: 1.65;
}

.settings-kicker {
    width: fit-content;
    border: 1px solid rgba(255, 46, 115, .34);
    border-radius: 999px;
    padding: 6px 11px;
    color: #ff72ad;
    background: rgba(255, 46, 115, .1);
    font-size: 12px;
    font-weight: 900;
}

.settings-actions,
.settings-delete-form {
    display: grid;
    gap: 10px;
}

.settings-note {
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 255, 255, .05);
}

.settings-note strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
}

.settings-delete-form label {
    color: #fff;
    font-weight: 900;
}

.settings-delete-form input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 16px;
    padding: 0 14px;
    color: #fff;
    background: rgba(255, 255, 255, .065);
    outline: none;
}

.settings-delete-form input:focus {
    border-color: rgba(255, 46, 115, .66);
    box-shadow: 0 0 0 4px rgba(255, 46, 115, .12);
}

.danger-zone {
    border-color: rgba(255, 77, 103, .34) !important;
}

.danger-zone .btn {
    color: #fff;
    border-color: rgba(255, 77, 103, .38);
    background: rgba(255, 77, 103, .12);
}

body.app-authenticated .app-shell-container {
    width: min(980px, calc(100% - 360px));
    margin-left: calc(max(24px, calc((100vw - 1440px) / 2 + 24px)) + 296px);
    margin-right: auto;
    padding: 46px 24px 126px;
}

body.page-profiles-edit.app-authenticated .app-shell-container {
    width: min(1360px, calc(100vw - (max(24px, calc((100vw - 1440px) / 2 + 24px)) + 336px)));
    max-width: none;
}

body.page-core-app_home .global-app-sidebar,
body.page-matching-discover .global-app-sidebar {
    display: none;
}

body.page-core-app_home .app-shell-container,
body.page-matching-discover .app-shell-container {
    width: 100%;
    margin: 0;
    padding: 0;
    max-width: none;
}

body.app-authenticated .page-head {
    align-items: center;
    margin: 0 0 28px;
}

body.app-authenticated .page-title,
body.app-authenticated .section-title {
    color: #fff;
    text-shadow: 0 14px 44px rgba(255, 46, 115, .16);
}

body.app-authenticated .page-head .muted,
body.app-authenticated .muted {
    color: var(--app-muted);
}

body.app-authenticated .eyebrow {
    color: #ff72ad;
    border-color: rgba(255, 46, 115, .35);
    background: rgba(255, 46, 115, .1);
    box-shadow: 0 12px 28px rgba(255, 46, 115, .08);
}

body.app-authenticated .card,
body.app-authenticated .panel,
body.app-authenticated .form-shell,
body.app-authenticated .form-card,
body.app-authenticated .conversation-list,
body.app-authenticated .chat-panel {
    color: #fff;
    border: 1px solid var(--app-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025)),
        var(--app-panel);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .32), var(--app-glow);
    backdrop-filter: blur(22px);
}

body.app-authenticated .card:hover,
body.app-authenticated .conversation-card:hover,
body.app-authenticated .match-row:hover,
body.app-authenticated .profile-tile:hover {
    border-color: rgba(255, 46, 115, .42);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .38), 0 0 46px rgba(255, 46, 115, .16);
    transform: translateY(-2px);
}

body.app-authenticated .profile-tile,
body.app-authenticated .conversation-card,
body.app-authenticated .match-row,
body.app-authenticated .list-card {
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

body.app-authenticated .tile-photo {
    height: 360px;
    background: #080b18;
}

body.app-authenticated .tile-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 44%, rgba(5, 7, 18, .86) 100%);
    pointer-events: none;
}

body.app-authenticated .tile-body h2,
body.app-authenticated .list-copy h3,
body.app-authenticated .chat-person h2,
body.app-authenticated .chat-person h3 {
    color: #fff;
}

body.app-authenticated .tile-body .tag,
body.app-authenticated .profile-summary .tag,
body.app-authenticated .card .tag-row .tag,
body.app-authenticated .score-panel .tag,
body.app-authenticated .pill {
    color: #fff;
    border: 1px solid rgba(255, 46, 115, .35);
    background: rgba(255, 46, 115, .11);
}

body.app-authenticated .btn {
    border: 1px solid rgba(255, 255, 255, .1);
}

body.app-authenticated .btn-primary,
body.app-authenticated .nav-cta {
    color: #fff;
    background: linear-gradient(135deg, #ff2e73, #ff5aa2);
    box-shadow: 0 20px 44px rgba(255, 46, 115, .32);
}

body.app-authenticated .btn-soft,
body.app-authenticated .btn-ghost,
body.app-authenticated .btn-dark {
    color: #fff;
    background: rgba(255, 255, 255, .075);
    border-color: rgba(255, 255, 255, .14);
}

body.app-authenticated .premium-card {
    border-color: rgba(255, 46, 115, .45);
    background:
        linear-gradient(135deg, rgba(255, 46, 115, .34), rgba(116, 47, 255, .24)),
        url("/static/core/img/premium_box_left.97e67f026038.png") right bottom / min(58%, 360px) auto no-repeat,
        rgba(18, 12, 35, .82);
}

body.app-authenticated .verify-badge,
body.app-authenticated .match-badge,
body.app-authenticated .count-badge {
    color: #fff;
    background: linear-gradient(135deg, #ff2e73, #ff66ad);
    box-shadow: 0 12px 28px rgba(255, 46, 115, .28);
}

body.app-authenticated .avatar {
    border: 2px solid rgba(255, 46, 115, .72);
    box-shadow: 0 0 0 4px rgba(255, 46, 115, .1), 0 16px 36px rgba(0, 0, 0, .32);
}

body.app-authenticated .message {
    color: #fff;
    border-color: rgba(255, 255, 255, .12);
    background: rgba(18, 22, 38, .88);
}

body.app-authenticated .form-shell input,
body.app-authenticated .form-shell select,
body.app-authenticated .form-shell textarea,
body.app-authenticated .auth-shell input,
body.app-authenticated .auth-shell select,
body.app-authenticated .auth-shell textarea,
body.app-authenticated .form-card input,
body.app-authenticated .form-card select,
body.app-authenticated .form-card textarea,
body.app-authenticated .chat-input textarea {
    color: #fff;
    border-color: rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .065);
}

body.app-authenticated select {
    color-scheme: dark;
}

body.app-authenticated select option,
body.app-authenticated select optgroup {
    color: #fff;
    background: #111625;
}

body.app-authenticated select option:checked {
    color: #fff;
    background: #a71955;
}

body.app-authenticated .form-shell input::placeholder,
body.app-authenticated .form-shell textarea::placeholder,
body.app-authenticated .chat-input textarea::placeholder {
    color: rgba(255, 255, 255, .48);
}

body.app-authenticated .form-shell #id_interests label,
body.app-authenticated .form-card #id_interests label {
    color: #fff;
    border-color: rgba(255, 46, 115, .28);
    background: rgba(255, 46, 115, .09);
}

body.app-authenticated .chat-header,
body.app-authenticated .chat-input {
    border-color: rgba(255, 255, 255, .1);
    background: rgba(5, 7, 18, .35);
}

body.app-authenticated .chat-messages {
    background:
        radial-gradient(circle at 12% 0, rgba(255, 46, 115, .12), transparent 34%),
        linear-gradient(180deg, rgba(5, 7, 18, .64), rgba(8, 10, 23, .94));
}

body.app-authenticated .bubble {
    color: #f8f7ff;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .08);
}

body.app-authenticated .bubble.mine {
    color: #fff;
    border-color: rgba(255, 46, 115, .3);
    background: linear-gradient(135deg, #ff2e73, #ff5aa2);
}

body.app-authenticated .empty-state img {
    opacity: .82;
    filter: drop-shadow(0 18px 38px rgba(255, 46, 115, .12));
}

body.page-profiles-me .profile-summary {
    min-height: 100%;
}

body.page-profiles-me .profile-summary > p {
    margin: 0;
    color: rgba(246, 239, 255, .78);
    font-size: 16px;
    line-height: 1.65;
}

body.page-profiles-me .profile-summary .avatar {
    width: 84px;
    height: 84px;
    flex-basis: 84px;
}

body.page-profiles-me .photo-strip {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

body.page-profiles-me .photo-item {
    color: #fff;
    border-color: rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .055);
    box-shadow: 0 18px 52px rgba(0, 0, 0, .24);
}

body.page-profiles-me .photo-item img {
    height: 240px;
}

body.page-profiles-me .photo-item-body p {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, .86);
    font-weight: 800;
}

@media (max-width: 980px) {
    .desktop-nav {
        display: none;
    }

    .container {
        width: min(100% - 24px, 720px);
        padding-top: 20px;
    }

    .grid-2,
    .grid-3,
    .settings-grid,
    .auth-grid,
    .chat-layout {
        grid-template-columns: 1fr;
    }

    .page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-hero {
        min-height: 76svh;
        border-radius: 26px;
    }

    .hero-proof {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .swipe-card {
        min-height: min(560px, 68svh);
    }

    .chat-layout {
        min-height: auto;
    }

    .conversation-list {
        display: none;
    }

    .chat-messages {
        height: 58vh;
    }

    .list-card,
    .conversation-card,
    .match-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .list-card .btn,
    .conversation-card .btn,
    .match-row .btn {
        width: 100%;
    }

    .bottom-nav {
        position: fixed;
        right: 12px;
        bottom: 12px;
        left: 12px;
        z-index: 60;
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 4px;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 26px;
        padding: 8px;
        background: rgba(8, 11, 24, .9);
        box-shadow: 0 18px 44px rgba(8, 11, 24, .36);
        backdrop-filter: blur(18px);
    }

    .bottom-nav a {
        position: relative;
        display: grid;
        place-items: center;
        gap: 3px;
        min-height: 52px;
        border-radius: 19px;
        color: rgba(255, 255, 255, .72);
        font-size: 11px;
        font-weight: 900;
    }

    .bottom-nav em {
        position: absolute;
        top: 6px;
        right: 10px;
        min-width: 18px;
        height: 18px;
        font-size: 10px;
    }

    .bottom-nav strong {
        display: none;
    }

    .bottom-nav a::before {
        content: "";
        width: 22px;
        height: 22px;
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        opacity: .86;
        filter: drop-shadow(0 0 8px rgba(255, 46, 115, .22));
    }

    .bottom-nav a:nth-child(1)::before {
        background-image: url("/static/core/img/nav/nav_home_line.7961c2ad0844.png");
    }

    .bottom-nav a:nth-child(2)::before {
        background-image: url("/static/core/img/nav/nav_discover_compass.c90850f460ac.png");
    }

    .bottom-nav a:nth-child(3)::before {
        background-image: url("/static/core/img/nav/nav_likes_thumb.e6284e174eb4.png");
    }

    .bottom-nav a:nth-child(4)::before {
        background-image: url("/static/core/img/nav/nav_matches_heart.e8467d80cf99.png");
    }

    .bottom-nav a:nth-child(5)::before {
        background-image: url("/static/core/img/nav/nav_messages_chat.bdffeef62fc1.png");
    }

    .bottom-nav a:nth-child(6)::before {
        background-image: url("/static/images/nav/profilok.ee2475ba6f52.png");
    }

    .bottom-nav a:nth-child(7)::before {
        background-image: url("/static/core/img/nav/nav_profile_user.fe83bb67c4b7.png");
    }

    .bottom-nav a.active,
    .bottom-nav a:hover {
        color: #fff;
        background: rgba(255, 46, 115, .24);
    }

    .global-app-sidebar {
        display: none;
    }

    body.app-authenticated .app-shell-container {
        width: min(100% - 24px, 720px);
        margin: 0 auto;
        padding: 22px 0 118px;
    }

    body.app-authenticated .site-header {
        display: none;
    }

    body.app-authenticated .page-head {
        align-items: flex-start;
    }

    body.app-authenticated .tile-photo {
        height: min(430px, 58svh);
    }

    body.page-profiles-me .page-head {
        display: grid;
        gap: 18px;
        border: 1px solid rgba(255, 46, 115, .22);
        border-radius: 28px;
        padding: 22px;
        background:
            radial-gradient(circle at 100% 0, rgba(255, 46, 115, .18), transparent 38%),
            rgba(18, 22, 38, .72);
        box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
        backdrop-filter: blur(20px);
    }

    body.page-profiles-me .page-head .btn {
        width: 100%;
    }

    body.page-profiles-me .profile-summary .list-left {
        align-items: center;
        flex-direction: row;
    }

    body.page-profiles-me .premium-card {
        min-height: 260px;
        background-size: min(76%, 300px) auto, auto, auto;
    }

    body.page-profiles-me .photo-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    body.page-profiles-me .photo-item img {
        height: auto;
        aspect-ratio: 1 / 1.18;
    }
}

@media (max-width: 560px) {
    .site-header {
        padding: 12px 16px;
    }

    .brand {
        font-size: 19px;
    }

    .landing-hero,
    .card,
    .panel,
    .phone-frame {
        border-radius: 24px;
    }

    .card {
        padding: 18px;
    }

    .actions,
    .action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .actions .btn,
    .action-row .btn,
    .actions form,
    .action-row form {
        width: 100%;
    }

    .actions form .btn,
    .action-row form .btn {
        width: 100%;
    }

    .circle-btn {
        width: 58px;
        height: 58px;
    }

    .chat-input {
        grid-template-columns: 1fr;
    }

    .bubble {
        max-width: 88%;
    }

    body.page-profiles-me.app-authenticated .app-shell-container {
        width: min(100% - 22px, 430px);
        padding-top: 18px;
    }

    body.page-profiles-me .page-title {
        font-size: clamp(36px, 12vw, 48px);
    }

    body.page-profiles-me .page-head {
        margin-bottom: 16px;
        padding: 18px;
    }

    body.page-profiles-me .grid {
        gap: 14px;
    }

    body.page-profiles-me .card {
        border-radius: 24px;
        padding: 16px;
    }

    body.page-profiles-me .profile-summary {
        gap: 16px;
    }

    body.page-profiles-me .profile-summary .list-left {
        gap: 13px;
        min-width: 0;
    }

    body.page-profiles-me .profile-summary .avatar {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }

    body.page-profiles-me .profile-summary .list-copy {
        min-width: 0;
    }

    body.page-profiles-me .profile-summary .list-copy h2 {
        overflow-wrap: anywhere;
        font-size: 24px;
        line-height: 1.08;
    }

    body.page-profiles-me .profile-summary > p {
        font-size: 15px;
    }

    body.page-profiles-me .tag-row {
        gap: 7px;
    }

    body.page-profiles-me .tag,
    body.page-profiles-me .pill {
        min-height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }

    body.page-profiles-me .action-row {
        margin-top: 4px;
    }

    body.page-profiles-me .premium-card {
        min-height: 220px;
        padding-bottom: 92px;
        background-size: min(82%, 260px) auto, auto, auto;
    }

    body.page-profiles-me .premium-card .section-title {
        font-size: 28px;
    }

    body.page-profiles-me .photo-strip {
        grid-template-columns: 1fr 1fr;
    }

    body.page-profiles-me .photo-item {
        border-radius: 18px;
    }

    body.page-profiles-me .photo-item-body {
        padding: 11px;
    }

    body.page-profiles-me .photo-item-body .btn {
        min-height: 38px;
        border-radius: 13px;
        font-size: 12px;
    }

    body.page-profiles-me .list-card {
        gap: 12px;
    }

    body.page-profiles-me .list-card h2 {
        margin: 0;
        font-size: 24px;
    }

    body.page-profiles-me .list-card .btn {
        width: 100%;
    }
}

.likes-gate-layout .premium-card {
    position: sticky;
    top: 92px;
    align-self: start;
}

.locked-like-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 46, 115, .22);
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 46, 115, .16), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 246, 251, .98));
}

.locked-like-card .avatar {
    filter: blur(8px) saturate(.8);
    transform: scale(1.03);
}

.locked-like-card::after {
    content: "Plus";
    position: absolute;
    top: 14px;
    right: 14px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), #7a5cff);
    box-shadow: 0 14px 30px rgba(255, 46, 115, .24);
    font-size: 12px;
    font-weight: 950;
}

@media (max-width: 760px) {
    .likes-gate-layout .premium-card {
        position: static;
    }
}
