@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Exo+2:wght@400;500;600;700&family=Inter:wght@400;500;600&family=Lato:wght@300;400;500;600;700;800;900&family=Noto+Sans:wght@500&family=Nunito:wght@600;700&family=Outfit:wght@400&family=Overpass:wght@600&family=Poppins:wght@500;600&family=Roboto:wght@400&display=swap');

:root {
    --ink: #2b2025;
    --muted: #75686e;
    --rose: #d94f70;
    --rose-dark: #ad3454;
    --cream: #fff9f5;
    --blush: #f9e7e8;
    --wine: #431f2d;
    --line: rgba(67, 31, 45, .12);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--cream); color: var(--ink); font-family: "DM Sans", sans-serif; }
a { color: var(--rose-dark); text-decoration: none; }
h1, h2, h3 { font-family: inherit; }
h1:focus { outline: none; }
.app-frame { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 28px 22px; position: sticky; top: 0; height: 100vh; }
.brand { color: var(--ink); font-size: 27px; font-weight: 700; letter-spacing: -1.5px; }
.brand span { color: var(--rose); }
.nav-scrollable { height: calc(100vh - 82px); display: flex; flex-direction: column; justify-content: space-between; }
.nav { gap: 8px; margin-top: 44px; }
.nav-link { color: var(--muted); border-radius: 14px; padding: 12px 14px; font-weight: 600; }
.nav-link span { display: inline-block; width: 27px; color: var(--rose); }
.nav-link.active, .nav-link:hover { color: var(--wine); background: var(--blush); }
.premium-link { color: var(--rose-dark); }
.nav-auth { display: grid; gap: 12px; text-align: center; }
.navbar-toggler { display: none; }
main { min-width: 0; }
.content { max-width: 1180px; margin: 0 auto; padding: 52px clamp(24px, 5vw, 72px); }
.btn { border-radius: 999px; font-weight: 700; padding: .7rem 1.3rem; }
.btn-primary { background: var(--rose); border-color: var(--rose); }
.btn-primary:hover { background: var(--rose-dark); border-color: var(--rose-dark); }
.btn-soft { background: var(--blush); color: var(--wine); }
.eyebrow { color: var(--rose-dark); font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero { min-height: 61vh; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 72px; }
.hero h1, .premium-hero h1 { font-size: clamp(3.2rem, 7vw, 6.7rem); line-height: .94; margin: 18px 0 24px; letter-spacing: -.045em; }
.hero p, .premium-hero p { color: var(--muted); font-size: 1.18rem; max-width: 600px; }
.hero-actions { display: flex; gap: 13px; margin-top: 34px; }
.hero-actions .btn-outline-light { color: var(--wine); border-color: var(--line); background: #fff; }
.hero-card { background: var(--wine); color: #fff; border-radius: 32px; padding: 42px; transform: rotate(2deg); box-shadow: 0 32px 80px rgba(67,31,45,.2); }
.hero-card p { color: #e8ccd5; }
.avatar-orbit { display: grid; place-items: center; width: 94px; height: 94px; border: 1px solid #a87889; border-radius: 50%; font-size: 52px; color: #ff9ab3; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feature-grid article, .panel, .plan-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.feature-grid span { color: var(--rose); font-weight: 700; }
.feature-grid h3 { margin: 18px 0 8px; }.feature-grid p { color: var(--muted); }
.auth-shell { min-height: 82vh; display: grid; place-items: center; }
.auth-card { width: min(100%, 460px); background: #fff; padding: 42px; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 24px 70px rgba(67,31,45,.1); }
.auth-card h1 { margin: 12px 0 28px; }.auth-card label, .profile-form label { display: block; font-weight: 600; margin: 16px 0 7px; }
.form-control, .form-select { border-radius: 12px; border-color: var(--line); padding: .75rem .9rem; }
.auth-card .btn { margin-top: 22px; }.auth-card .alert, .profile-form .alert { margin: 18px 0 0; }
.auth-foot { text-align: center; margin: 24px 0 0; color: var(--muted); }
.content-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 34px; }
.content-heading h1 { font-size: 3.2rem; margin: 7px 0 0; }.content-heading p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.profile-form .btn { margin-top: 22px; }
.discovery-card { width: min(100%, 620px); margin: 0 auto; background: #fff; border-radius: 30px; overflow: hidden; box-shadow: 0 24px 70px rgba(67,31,45,.13); }
.profile-photo { height: 430px; background: linear-gradient(145deg,#f6cbd1,#d58ba0); background-size: cover; background-position: center; display: grid; place-items: center; position: relative; }
.profile-photo > span { font-family: "Playfair Display"; font-size: 8rem; color: rgba(255,255,255,.75); }
.verified { position: absolute; right: 18px; top: 18px; background: #fff; color: var(--rose-dark); border-radius: 99px; padding: 8px 13px; font-size: .8rem; font-weight: 700; }
.profile-copy { padding: 27px 30px 12px; }.profile-copy h2 { font-size: 2rem; margin: 0; }.profile-copy p { color: var(--muted); }
.location { font-size: .9rem; }.interest-row { display: flex; flex-wrap: wrap; gap: 8px; }.interest-row span { background: var(--blush); border-radius: 99px; padding: 7px 11px; font-size: .8rem; }
.reaction-row { display: flex; justify-content: center; gap: 22px; padding: 18px 30px 30px; }
.reaction { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 29px; box-shadow: 0 8px 24px rgba(67,31,45,.09); }
.reaction.dislike { color: var(--muted); }.reaction.like { color: var(--rose); }
.toast-note { position: fixed; right: 28px; bottom: 28px; padding: 16px 22px; background: var(--wine); color: #fff; border-radius: 14px; }
.loading-heart { color: var(--rose); font-size: 5rem; text-align: center; animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.15); opacity: .6; } }
.empty-state { text-align: center; padding: 90px 24px; }.empty-state p { color: var(--muted); }
.match-grid { display: grid; gap: 12px; }.match-card { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 22px; color: var(--ink); }
.match-avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--blush); color: var(--rose); display: grid; place-items: center; font: 700 1.6rem "Playfair Display"; }
.match-card h3, .match-card p { margin: 0; }.match-card p { color: var(--muted); }
.chat-shell { height: calc(100vh - 104px); display: grid; grid-template-rows: auto 1fr auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.chat-shell header { padding: 22px 26px; border-bottom: 1px solid var(--line); }.chat-shell header h1 { margin: 6px 0 0; font-size: 1.6rem; }
.messages { overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.message { align-self: flex-end; max-width: 72%; background: var(--rose); color: #fff; padding: 12px 16px; border-radius: 18px 18px 4px 18px; }.message p { margin: 0; }.message small { opacity: .75; }
.composer { display: grid; grid-template-columns: 1fr auto; gap: 12px; border-top: 1px solid var(--line); padding: 16px; }
.premium-hero { padding: 48px 0 64px; }.premium-hero p { max-width: 680px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }.plan-card .price { font: 700 2.3rem "Playfair Display"; color: var(--rose-dark); }.plan-card p { color: var(--muted); }
#blazor-error-ui { display: none; position: fixed; bottom: 0; width: 100%; background: #fff3cd; padding: 12px; z-index: 1000; }
#components-reconnect-modal { display: none !important; }

@media (max-width: 800px) {
    .app-frame { display: block; }.sidebar { position: static; height: auto; padding: 18px 20px; }.brand-row { display: flex; justify-content: space-between; }
    .navbar-toggler { display: block; appearance: none; width: 32px; }.navbar-toggler::after { content: "☰"; font-size: 24px; }
    .navbar-toggler:not(:checked) ~ .nav-scrollable { display: none; }.nav-scrollable { height: auto; }.nav { margin: 20px 0; }.nav-auth { margin-top: 20px; }
    .content { padding: 30px 20px; }.hero { grid-template-columns: 1fr; gap: 24px; }.hero-card { transform: none; }.feature-grid, .plan-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }.content-heading { align-items: start; flex-direction: column; gap: 15px; }.profile-photo { height: 52vh; }
}
