:root {
    --bg: #d5efe8;
    --text: #1a2730;
    --muted: #6a7a82;
    --accent: #ff785e;
    --accent-deep: #f05f47;
    --accent-soft: rgba(255, 120, 94, 0.12);
    --card: rgba(255, 255, 255, 0.82);
    --stroke: rgba(150, 200, 190, 0.58);
    --ink-soft: #35525c;
    --glow: rgba(255, 120, 94, 0.15);
    --safe-top: env(safe-area-inset-top, 0px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.4), transparent 34%),
        radial-gradient(circle at 82% 14%, rgba(255, 120, 94, 0.08), transparent 20%),
        var(--bg);
    color: var(--text);
}

.page-home {
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
}

.home-screen {
    --pavilla-shell-pad-x: clamp(1rem, 5vw, 2.5rem);
    min-height: 100dvh;
    width: min(100%, 920px);
    margin: 0 auto;
    padding: calc(clamp(1.4rem, 3vh, 2rem) + 3.5rem) var(--pavilla-shell-pad-x) 1.2rem;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: clamp(1.2rem, 3vh, 1.8rem);
    position: relative;
}

@media (min-width: 1024px) {
    .home-screen {
        padding-top: calc(clamp(1.4rem, 3vh, 2rem) + 3.8rem);
    }
}

.home-top {
    color: var(--text);
}

.home-nav-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-nav-group-start {
    justify-self: start;
}

.home-nav-group-end {
    justify-self: end;
}

.home-icon {
    width: clamp(26px, 7vw, 36px);
    height: auto;
}

.home-icon.is-active {
    width: clamp(34px, 9vw, 44px);
}

.home-notifications-link .home-icon {
    filter: brightness(0) saturate(100%) invert(68%) sepia(64%) saturate(4642%) hue-rotate(321deg) brightness(103%) contrast(102%);
    margin-left: 0.35rem;
}

.home-message-link .home-icon {
    filter: brightness(0) saturate(100%) invert(68%) sepia(64%) saturate(4642%) hue-rotate(321deg) brightness(103%) contrast(102%);
}

.home-message-link,
.home-notifications-link,
.home-profile-link,
.home-explore-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-center {
    justify-self: center;
    display: grid;
    justify-items: center;
    gap: 0.2rem;
}

.home-title {
    font-size: clamp(1.3rem, 4.5vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.01em;
}

.home-feed-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary, #ff715e);
    text-decoration: none;
    background: rgba(255,113,94,0.1);
    border-radius: 99px;
    padding: 0.18rem 0.7rem;
    letter-spacing: 0.02em;
    transition: background 0.15s;
}
.home-feed-link:hover { background: rgba(255,113,94,0.18); }

.home-explore {
    width: clamp(30px, 7.8vw, 46px);
    height: auto;
    filter: drop-shadow(0 6px 12px rgba(25, 25, 40, 0.2));
    margin-right: 0.35rem;
}

.home-discover {
    display: grid;
    gap: 0.6rem;
}

/* a touch more air before the profile card starts */
.home-discover .home-queue-area,
.home-discover .home-loading { margin-top: 0.35rem; }

/* .home-feed-strip removed — feed screen is no longer linked from home */

.home-empty-promo-host {
    display: grid;
    gap: 0.9rem;
    margin-top: 0.35rem;
}

.home-hero {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.2rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 120, 94, 0.12), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62));
    border: 1px solid rgba(150, 200, 190, 0.45);
    box-shadow: 0 6px 20px rgba(24, 39, 48, 0.08);
    transform-origin: top center;
    overflow: hidden;
    max-height: 420px;
    transition: opacity 220ms ease, transform 220ms ease, margin 220ms ease, padding 220ms ease, max-height 220ms ease, border-width 220ms ease;
    will-change: opacity, transform, max-height, margin, padding;
}

.home-hero.is-dismissing,
.home-install-card.is-dismissing,
.home-update-card.is-dismissing {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    max-height: 0;
    border-width: 0;
    pointer-events: none;
}

.home-hero-dismiss {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #557078;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 14px rgba(24, 39, 48, 0.1);
}

.home-hero-dismiss:hover {
    color: #1a2730;
}

.home-hero > div {
    min-width: 0;
}

.home-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.8rem;
}

.home-hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(150, 200, 190, 0.42);
    color: #35525c;
    font-size: 0.76rem;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(24, 39, 48, 0.06);
}

.home-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(26, 39, 48, 0.65);
    margin-bottom: 0.18rem;
}

.home-heading {
    font-size: clamp(1.2rem, 4vw, 1.75rem);
    line-height: 1.06;
    margin-bottom: 0.3rem;
    max-width: 18ch;
}

.home-copy {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.35;
    max-width: 42ch;
}

.home-hero-link {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 120, 94, 0.28);
    color: var(--accent-deep);
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.home-update-card {
    position: relative;
    display: grid;
    gap: 0.38rem;
    padding: 0.54rem 0.72rem 0.56rem;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 243, 237, 0.95), rgba(255, 255, 255, 0.78)),
        rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 120, 94, 0.22);
    box-shadow: 0 16px 30px rgba(24, 39, 48, 0.08);
    overflow: hidden;
    max-height: 132px;
    transition: opacity 220ms ease, transform 220ms ease, margin 220ms ease, padding 220ms ease, max-height 220ms ease, border-width 220ms ease;
    isolation: isolate;
    will-change: opacity, transform, max-height, margin, padding;
}

.home-growth-card {
    display: grid;
    gap: 0.7rem;
    padding: 1rem 1.05rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 120, 94, 0.12), transparent 32%),
        linear-gradient(145deg, rgba(255, 247, 242, 0.95), rgba(255, 255, 255, 0.84));
    border: 1px solid rgba(255, 120, 94, 0.22);
    box-shadow: 0 4px 14px rgba(24, 39, 48, 0.07);
}

.home-growth-copy {
    display: grid;
    gap: 0.28rem;
}

.home-growth-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.22;
}

.home-growth-text {
    color: var(--muted);
    line-height: 1.42;
    font-size: 0.88rem;
    max-width: 46ch;
}

.home-growth-meta,
.home-growth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.home-growth-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 0.85rem;
    border-radius: 999px;
    background: rgba(255, 120, 94, 0.12);
    color: #9f4838;
    font-size: 0.8rem;
    font-weight: 800;
}

.home-growth-pill-soft {
    background: rgba(255, 255, 255, 0.82);
    color: #516069;
    border: 1px solid rgba(150, 200, 190, 0.34);
}

.home-growth-btn {
    border: 0;
    border-radius: 999px;
    min-height: 44px;
    padding: 0 1rem;
    background: #ff7b61;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid #ff7b61;
    box-shadow: none;
}

.home-growth-btn-secondary {
    background: rgba(255, 255, 255, 0.94);
    color: #d95b49;
    border: 1px solid rgba(255, 120, 94, 0.22);
    box-shadow: 0 8px 16px rgba(24, 39, 48, 0.05);
}

.home-update-card::before {
    display: none;
}

.home-update-card.is-dismissing {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
    pointer-events: none;
}

.home-update-copy-wrap {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.home-update-title {
    font-size: clamp(0.74rem, 1.9vw, 0.84rem);
    line-height: 1.08;
    font-weight: 800;
    max-width: 27ch;
}

.home-update-copy {
    color: var(--ink-soft);
    font-size: 0.68rem;
    line-height: 1.28;
    max-width: 62ch;
}

.home-update-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    position: relative;
    z-index: 1;
}

.home-update-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 120, 94, 0.14);
    color: #a64c3f;
    font-size: 0.56rem;
    line-height: 1;
    letter-spacing: 0.01em;
    font-weight: 800;
}

.home-update-pill-success {
    background: rgba(66, 211, 160, 0.16);
    color: #2a5f52;
}

.home-update-pill-soft {
    background: rgba(255, 255, 255, 0.72);
    color: #50636b;
    border: 1px solid rgba(150, 200, 190, 0.38);
}

.home-install-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.95rem;
    padding: 1rem 1.05rem;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(247, 251, 250, 0.84));
    border: 1px solid rgba(150, 200, 190, 0.42);
    box-shadow: 0 18px 30px rgba(24, 39, 48, 0.08);
    overflow: hidden;
    max-height: 520px;
    transition: opacity 220ms ease, transform 220ms ease, margin 220ms ease, padding 220ms ease, max-height 220ms ease, border-width 220ms ease;
    will-change: opacity, transform, max-height, margin, padding;
}
.home-apps-group {
    display: grid;
    gap: 0.65rem;
}

.home-apps-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0 0.12rem;
}

.home-apps-title {
    font-size: 1.02rem;
    line-height: 1.18;
    font-weight: 800;
    color: var(--text);
}

.home-apps-list {
    display: grid;
    gap: 0.7rem;
}

.home-apps-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border-radius: 24px;
    text-decoration: none;
    color: inherit;
    background:
        radial-gradient(circle at top right, rgba(255, 122, 96, 0.1), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(247, 251, 250, 0.84));
    border: 1px solid rgba(150, 200, 190, 0.42);
    box-shadow: 0 4px 14px rgba(24, 39, 48, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-apps-copy {
    display: grid;
    gap: 0.28rem;
    min-width: 0;
}

.home-apps-text {
    color: var(--muted);
    line-height: 1.4;
    font-size: 0.88rem;
    max-width: 48ch;
}

.home-apps-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.42rem;
}

.home-apps-pill,
.home-apps-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 0.78rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(150, 200, 190, 0.42);
    color: #35525c;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(24, 39, 48, 0.06);
}

.home-apps-arrow {
    width: 36px;
    padding: 0;
    color: var(--accent-deep);
}
.home-facematch-card,
.home-echo-card,
.home-ripple-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 122, 96, 0.1), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(247, 251, 250, 0.84));
    border: 1px solid rgba(150, 200, 190, 0.42);
    box-shadow: 0 4px 14px rgba(24, 39, 48, 0.07);
}

.home-facematch-copy,
.home-echo-copy {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
}

.home-facematch-title,
.home-echo-title {
    font-size: 1rem;
    font-weight: 800;
}

.home-facematch-text,
.home-echo-text {
    color: var(--muted);
    line-height: 1.4;
    font-size: 0.88rem;
    max-width: 44ch;
}

.home-facematch-actions,
.home-echo-actions {
    flex-shrink: 0;
}

.home-echo-actions {
    display: grid;
    gap: 0.55rem;
    justify-items: end;
}

.home-echo-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(150, 200, 190, 0.42);
    color: #35525c;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(24, 39, 48, 0.06);
}

.home-facematch-link,
.home-echo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff876f, var(--accent));
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 14px 20px rgba(255, 120, 94, 0.2);
}

.home-install-card[hidden] {
    display: none;
}

.home-install-icon-wrap {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 238, 0.9));
    box-shadow: 0 12px 24px rgba(24, 39, 48, 0.08);
}

.home-install-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.home-install-main {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.home-install-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.home-card-kicker {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(26, 39, 48, 0.6);
}

.home-install-title {
    font-size: 1rem;
    font-weight: 800;
}

.home-install-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0.2rem 0.62rem;
    border-radius: 999px;
    background: rgba(255, 141, 109, 0.12);
    color: var(--accent-deep);
    font-size: 0.72rem;
    font-weight: 800;
}

.home-install-copy {
    color: var(--muted);
    line-height: 1.4;
    font-size: 0.88rem;
}

.home-install-mini {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.42rem 0.68rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(150, 200, 190, 0.3);
}

.home-install-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8d6d, #ff7358);
    box-shadow: 0 0 0 0 rgba(255, 115, 88, 0.3);
    animation: home-install-pulse 1.9s ease-out infinite;
    flex-shrink: 0;
}

.home-install-mini-text {
    color: #4c6168;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-install-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.1rem;
}

.home-install-btn {
    border: 0;
    border-radius: 999px;
    min-height: 44px;
    padding: 0.65rem 0.95rem;
    background: var(--accent);
    color: #17242c;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.home-install-btn-secondary {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(150, 200, 190, 0.42);
    color: #39525b;
}

.home-install-btn[hidden] {
    display: none;
}

.home-install-hint {
    display: grid;
    gap: 0.28rem;
    margin-top: 0.35rem;
    padding: 0.78rem 0.9rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(150, 200, 190, 0.34);
    max-width: 100%;
}

.home-install-hint strong {
    color: #22343b;
    font-size: 0.82rem;
    font-weight: 800;
}

.home-install-hint p {
    margin: 0;
    color: #4c6168;
    font-size: 0.78rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.home-install-hint span {
    font-weight: 800;
    color: #1f3941;
}

.home-install-card[data-install-state="installed"] {
    border-style: solid;
}

.home-install-card[data-install-state="installed"] .home-install-icon-wrap {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(229, 248, 241, 0.9));
}

.home-install-card[data-install-state="installed"] .home-install-badge {
    background: rgba(66, 211, 160, 0.16);
    color: #2a5f52;
}

.home-install-card[data-install-state="ios-manual"] .home-install-badge {
    background: rgba(26, 39, 48, 0.08);
    color: #4a6068;
}

.home-install-card[data-install-state="unavailable"] .home-install-badge {
    background: rgba(26, 39, 48, 0.08);
    color: #4a6068;
}

.home-filters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    align-items: center;
    gap: 0.55rem;
    padding: 0.2rem 0 0.3rem;
}

.home-filters::-webkit-scrollbar {
    display: none;
}

.home-filter {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    border: 1px solid rgba(150, 200, 190, 0.62);
    background: rgba(255, 255, 255, 0.72);
    color: #35525c;
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    min-height: 40px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.home-filter.is-active {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff;
    border-color: transparent;
}

.home-filter:focus-visible,
.home-hero-dismiss:focus-visible {
    outline: 3px solid rgba(255, 120, 94, 0.22);
    outline-offset: 2px;
}

.home-search-scope {
    font-size: 0.84rem;
    color: var(--muted);
    min-height: 1.2rem;
    padding-left: 0.15rem;
    line-height: 1.35;
}

.home-pav-counter {
    display: inline-flex;
    align-items: center;
    justify-self: start;   /* don't stretch across the grid column */
    align-self: start;
    gap: 0.34rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: #2e7a63;
    padding: 0.2rem 0.6rem 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(77,184,145,0.08);
    border: 1px solid rgba(77,184,145,0.18);
    box-shadow: none;
}

.home-pav-counter[data-limit-reached="true"] {
    color: var(--muted);
    background: rgba(150,160,165,0.07);
    border-color: rgba(150,160,165,0.16);
    box-shadow: none;
}

.home-pav-counter-icon {
    width: auto;
    height: auto;
    background: none;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
    flex-shrink: 0;
    color: #3aa57e;
}

.home-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.44rem 1rem 0.44rem 0.68rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(150, 200, 190, 0.28);
    box-shadow: 0 2px 10px rgba(24, 39, 48, 0.07);
    width: fit-content;
    margin: 0 auto;
}

.home-loading-spinner {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid rgba(24, 39, 48, 0.11);
    border-top-color: var(--accent-deep);
    animation: homeButtonSpin 620ms linear infinite;
}

.home-loading[hidden] {
    display: none !important;
}

.home-loading-title {
    font-size: 0.76rem;
    font-weight: 600;
    color: #31505a;
    white-space: nowrap;
}

.home-loading-copy {
    display: none;
}

.home-cards {
    display: grid;
    gap: 0.95rem;
}

.home-cards.is-loading .home-card { display: none; }

/* ── Skeleton loading cards ──────────────────────────────── */
@keyframes home-skeleton-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.home-skeleton {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #eaefed;
    border: 1px solid rgba(150, 200, 190, 0.2);
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
}

.home-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.58) 50%, transparent 100%);
    animation: home-skeleton-shimmer 1.5s ease-in-out infinite;
    pointer-events: none;
}

.home-skeleton-row {
    display: flex;
    align-items: center;
    gap: 0.72rem;
}

.home-skeleton-avatar {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #d8e4e0;
    flex-shrink: 0;
}

.home-skeleton-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}

.home-skeleton-line {
    height: 11px;
    border-radius: 6px;
    background: #d8e4e0;
}

.home-skeleton-line-short { width: 55%; }

.home-skeleton-action {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #d8e4e0;
    flex-shrink: 0;
}

.home-skeleton-photo {
    width: 100%;
    height: 155px;
    border-radius: 18px;
    background: #d8e4e0;
}

.home-skeleton-chips {
    display: flex;
    gap: 0.45rem;
}

.home-skeleton-chip {
    height: 22px;
    width: 68px;
    border-radius: 999px;
    background: #d8e4e0;
}

.home-cards:not(.is-loading) .home-skeleton { display: none; }

/* Dark mode skeletons */
.theme-super-admin .home-skeleton {
    background: #1b2730;
    border-color: rgba(255, 255, 255, 0.05);
}
.theme-super-admin .home-skeleton::after {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
}
.theme-super-admin .home-skeleton-avatar,
.theme-super-admin .home-skeleton-line,
.theme-super-admin .home-skeleton-action,
.theme-super-admin .home-skeleton-photo,
.theme-super-admin .home-skeleton-chip {
    background: #26333f;
}

.home-card {
    position: relative;
    display: grid;
    grid-template-columns: 164px minmax(0, 1fr) 112px;
    gap: 0.95rem;
    align-items: start;
    padding: 1rem 1rem 1rem 0.95rem;
    border-radius: 26px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.74));
    border: 1px solid var(--stroke);
    box-shadow: 0 4px 16px rgba(24, 39, 48, 0.08);
    transform: translateY(0);
    opacity: 1;
    transition: transform 220ms ease, opacity 220ms ease, box-shadow 220ms ease;
    animation: home-card-rise 360ms ease both;
    will-change: transform, opacity;
}

.home-card:nth-child(2) {
    animation-delay: 60ms;
}

.home-card:nth-child(3) {
    animation-delay: 120ms;
}

.home-card:nth-child(4) {
    animation-delay: 180ms;
}

.home-card:nth-child(5) {
    animation-delay: 240ms;
}

.home-card:nth-child(6) {
    animation-delay: 300ms;
}

.home-card:hover {
    box-shadow: 0 24px 40px rgba(24, 39, 48, 0.12);
}

@media (hover: hover) and (pointer: fine) {
    .home-card:hover {
        transform: translateY(-2px);
    }
}

.home-install-btn:hover {
    box-shadow: 0 14px 22px rgba(240, 96, 72, 0.2);
}

.home-install-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 22px rgba(240, 96, 72, 0.2);
}

@media (hover: hover) and (pointer: fine) {
    .home-install-btn:hover {
        transform: translateY(-1px);
    }
}

.home-card-lite {
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(246, 251, 249, 0.8));
    border-style: dashed;
}

.home-card-lite .home-card-gallery {
    opacity: 0.92;
}

.home-card-lite .home-avatar {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.44), transparent 55%),
        linear-gradient(135deg, #edf5f2, #dbe9e4);
    color: #4f696f;
}

.home-card-lite .home-match {
    background: rgba(246, 251, 249, 0.9);
}

.home-card-lite .home-match-bar {
    background: rgba(26, 39, 48, 0.08);
}

.home-card-lite .home-match-bar span {
    background: linear-gradient(90deg, #9ab7ae, #7ea197);
}

.home-card.is-hidden {
    display: none;
}

.home-card.is-filtering-out {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    pointer-events: none;
}

.home-card.is-filtering-in {
    animation: home-card-filter-in 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.home-feed-end {
    display: grid;
    gap: 0.45rem;
    padding: 1.05rem 1rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 120, 94, 0.08), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 251, 250, 0.84));
    border: 1px solid rgba(150, 200, 190, 0.42);
    box-shadow: 0 16px 28px rgba(24, 39, 48, 0.07);
    color: var(--text);
}

.home-feed-end[hidden] {
    display: none !important;
}

.home-feed-end-title {
    font-size: 1rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text);
}

.home-feed-end-text {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 58ch;
}

.home-feed-end-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.15rem;
}

.home-feed-end-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff876f, var(--accent));
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 14px 20px rgba(255, 120, 94, 0.18);
}

.home-feed-end-echo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    margin-top: 0.2rem;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(255, 120, 94, 0.08), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(247, 251, 250, 0.82));
    border: 1px solid rgba(150, 200, 190, 0.36);
    color: var(--text);
}

.home-feed-end-echo-copy {
    display: grid;
    gap: 0.24rem;
    min-width: 0;
}

.home-feed-end-echo-title {
    font-size: 0.98rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text);
}

.home-feed-end-echo-text {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
    max-width: 48ch;
}

.home-feed-end-echo-actions {
    flex-shrink: 0;
}

.home-feed-end-echo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 120, 94, 0.24);
    color: var(--accent-deep);
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(24, 39, 48, 0.06);
}

body.theme-super-admin .home-feed-end {
    background:
        radial-gradient(circle at top right, rgba(255, 120, 94, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(17, 26, 33, 0.96), rgba(22, 30, 38, 0.92));
    border-color: rgba(160, 200, 190, 0.18);
    box-shadow: 0 22px 46px rgba(2, 8, 12, 0.28);
}

body.theme-super-admin .home-feed-end-title,
body.theme-super-admin .home-feed-end-echo-title {
    color: var(--text);
}

body.theme-super-admin .home-feed-end-text,
body.theme-super-admin .home-feed-end-echo-text,
body.theme-super-admin .home-feed-end .home-card-kicker,
body.theme-super-admin .home-feed-end-echo .home-card-kicker {
    color: rgba(238, 246, 241, 0.82);
}

body.theme-super-admin .home-feed-end-echo {
    background:
        radial-gradient(circle at top right, rgba(255, 120, 94, 0.12), transparent 34%),
        linear-gradient(145deg, rgba(14, 22, 30, 0.92), rgba(18, 28, 36, 0.88));
    border-color: rgba(160, 200, 190, 0.18);
}

body.theme-super-admin .home-feed-end-link {
    color: #fff7f3;
    box-shadow: 0 14px 20px rgba(255, 120, 94, 0.22);
}

body.theme-super-admin .home-feed-end-echo-link {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 120, 94, 0.28);
    color: #ffd5cb;
    box-shadow: 0 12px 22px rgba(2, 8, 12, 0.18);
}

.home-card-gallery {
    width: 164px;
    min-width: 164px;
    min-height: 118px;
    display: flex;
    gap: 0.7rem;
    align-items: stretch;
    align-self: stretch;
}

.home-avatar {
    border-radius: 20px;
    background: linear-gradient(135deg, #efefef, #cfcfcf);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid rgba(255, 255, 255, 0.88);
    color: rgba(26, 39, 48, 0.55);
    font-weight: 800;
    letter-spacing: 0.08em;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 18px rgba(24, 39, 48, 0.11);
    position: relative;
    flex: 1 1 0;
}

.home-avatar-primary {
    z-index: 2;
}

.home-avatar-secondary {
    border-radius: 18px;
    z-index: 1;
}

.home-card-main {
    display: grid;
    gap: 0.62rem;
    min-width: 0;
    align-self: stretch;
    align-content: center;
}

.home-card-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.home-status,
.home-distance {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}

.home-status {
    background: rgba(66, 211, 160, 0.16);
    color: #246556;
}

.home-status-fresh {
    background: rgba(255, 120, 94, 0.14);
    color: #a54f3d;
}

.home-distance {
    background: rgba(26, 39, 48, 0.06);
    color: #50616a;
}

.home-card-info {
    display: grid;
    gap: 0.46rem;
}

.home-card-info h3 {
    font-size: clamp(1rem, 3.8vw, 1.22rem);
    font-weight: 800;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.home-card-info h3 span {
    font-size: clamp(0.84rem, 3vw, 0.96rem);
    color: #6b7b83;
    font-weight: 700;
}

.home-verify-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0.18rem 0.56rem;
    border-radius: 999px;
    background: rgba(26, 39, 48, 0.08);
    color: #52626a;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
}

.home-verify-badge.is-verified {
    background: rgba(66, 211, 160, 0.16);
    color: #2a5f52;
}

.home-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.home-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.home-trust-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.2rem 0.58rem;
    border-radius: 999px;
    background: rgba(26, 39, 48, 0.06);
    color: #53646c;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
}

.home-trust-chip.tone-strong {
    background: rgba(66, 211, 160, 0.16);
    color: #2a5f52;
}

.home-trust-chip.tone-steady {
    background: rgba(255, 122, 96, 0.12);
    color: #9f4838;
}

.home-trust-chip.tone-building,
.home-trust-chip.tone-light {
    background: rgba(26, 39, 48, 0.06);
    color: #53646c;
}

.home-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.72rem;
    background: rgba(66, 211, 160, 0.16);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #2a5f52;
}

.home-tag-soft {
    background: rgba(26, 39, 48, 0.06);
    color: #516069;
}

.home-reason {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.42;
    max-width: 44ch;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    padding-top: 0.2rem;
}

.home-pav,
.home-connect,
.home-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    min-height: 44px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.home-pav {
    border: 1px solid transparent;
    background: var(--accent);
    color: #1a1b23;
    padding: 0.58rem 0.95rem;
    box-shadow: 0 10px 16px rgba(255, 120, 94, 0.18);
    gap: 0.42rem;
}

.home-pav.is-disabled {
    background: rgba(26, 39, 48, 0.08);
    color: #596971;
    border-color: transparent;
    pointer-events: none;
}

.home-pav.is-loading {
    pointer-events: none;
    opacity: 0.96;
}

.home-pav.is-loading::before {
    content: "";
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 999px;
    border: 2px solid rgba(26, 27, 35, 0.2);
    border-top-color: #1a1b23;
    animation: homeButtonSpin 700ms linear infinite;
}

.home-connect {
    border: 1px solid rgba(255, 120, 94, 0.72);
    background: rgba(255, 255, 255, 0.78);
    color: #ea6e5d;
    font-size: 0.9rem;
    padding: 0.6rem 0.96rem;
    box-shadow: 0 8px 14px rgba(255, 120, 94, 0.1);
}

.home-match {
    align-self: stretch;
    width: 112px;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 18px;
    padding: 0.52rem 0.6rem 0.58rem;
    display: grid;
    align-content: end;
    gap: 0.24rem;
    box-shadow: 0 10px 18px rgba(24, 39, 48, 0.08);
    border: 1px solid rgba(160, 200, 190, 0.42);
}

.home-strongest {
    display: grid;
    gap: 0.18rem;
    font-size: 0.66rem;
    font-weight: 700;
    color: #2a5f52;
    text-align: right;
}

.home-strongest span {
    display: inline-flex;
    justify-content: flex-end;
}

.home-match-score {
    font-size: 0.78rem;
    font-weight: 800;
    color: #2a5f52;
    text-align: right;
}

.home-match-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(66, 211, 160, 0.18);
    overflow: hidden;
}

.home-match-bar span {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3ddc97, #37c9aa);
}

.home-empty[hidden] {
    display: none !important;
}

.home-empty {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 1rem;
    text-align: center;
    padding: 2.2rem 1rem 1.2rem;
}

.home-empty-title {
    font-size: clamp(1rem, 3.6vw, 1.3rem);
    font-weight: 700;
    color: #5b6b73;
}

.home-empty-text {
    font-size: clamp(0.92rem, 3.2vw, 1rem);
    color: var(--muted);
    line-height: 1.4;
    max-width: 36ch;
}

.home-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
}

.home-cta {
    background: var(--accent);
    color: #1a1b23;
    font-size: 0.95rem;
    padding: 0.72rem 1.1rem;
    box-shadow: 0 12px 18px rgba(255, 120, 94, 0.2);
}

.home-cta-secondary {
    background: rgba(255, 255, 255, 0.88);
    color: var(--accent-deep);
    border: 1px solid rgba(255, 120, 94, 0.28);
    box-shadow: none;
}

.home-toast {
    position: fixed;
    left: 50%;
    bottom: 1.1rem;
    transform: translate(-50%, 12px);
    background: rgba(26, 39, 48, 0.78);
    color: #fff;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 1000;
}

.home-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (hover: hover) and (pointer: fine) {
    .home-hero-link:hover,
    .home-filter:hover,
    .home-pav:hover:not(:disabled),
    .home-connect:hover,
    .home-cta:hover,
    .home-update-dismiss:hover,
    .home-apps-card:hover {
        transform: translateY(-1px);
    }

    .home-hero-link:hover,
    .home-connect:hover,
    .home-cta:hover {
        box-shadow: 0 14px 22px rgba(240, 96, 72, 0.18);
    }

    .home-connect:hover {
        background: rgba(255, 247, 244, 0.96);
        border-color: rgba(255, 120, 94, 0.92);
    }
}

.home-credit {
    text-align: center;
    color: rgba(255, 113, 94, 0.85);
    font-size: clamp(0.72rem, 2vw, 0.9rem);
}

@keyframes home-card-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes home-card-filter-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }

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

@media (min-width: 1024px) {
    .home-screen {
        width: min(100%, 1200px);
        padding: calc(clamp(1.6rem, 3vh, 2.4rem) + 8.4rem) clamp(2rem, 7vw, 4rem) 1.4rem;
    }

    .home-discover {
        gap: 1.2rem;
    }

    .home-hero {
        align-items: center;
        padding: 1.35rem 1.45rem;
    }

    .home-hero-link {
        min-width: 188px;
        text-align: center;
    }

    .home-install-card,
    .home-update-card {
        width: 100%;
        max-width: none;
        justify-self: stretch;
    }

    .home-install-card {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 0.9rem;
        padding: 1.15rem 1.2rem;
    }

    .home-install-main {
        gap: 0.45rem;
        width: 100%;
    }

    .home-install-topline {
        align-items: center;
    }

    .home-install-title {
        max-width: none;
    }

    .home-install-copy {
        max-width: 50rem;
    }

    .home-install-mini {
        width: fit-content;
        max-width: 100%;
    }

    .home-install-actions {
        margin-top: 0.2rem;
    }

    .home-update-card {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 0.42rem;
        padding: 0.62rem 0.8rem 0.64rem;
    }

    .home-update-copy-wrap {
        gap: 0.12rem;
    }

    .home-update-title {
        max-width: 28ch;
    }

    .home-update-copy {
        max-width: 64ch;
    }

    .home-update-meta {
        justify-content: flex-start;
        align-self: start;
        padding-right: 0;
    }

    .home-cards {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .home-card {
        grid-template-columns: minmax(0, 1fr) 120px;
        grid-template-areas:
            "gallery match"
            "main match";
        min-height: 0;
        align-items: stretch;
    }

    .home-install-card.home-card-lite {
        background: linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(246, 251, 249, 0.84));
        border-style: solid;
    }

    .home-card-gallery {
        grid-area: gallery;
        width: 100%;
        min-width: 0;
        min-height: 168px;
    }

    .home-card-main {
        grid-area: main;
        align-content: start;
    }

    .home-match {
        grid-area: match;
        width: 136px;
        justify-self: end;
        transform: translateX(-0.35rem);
        padding: 0.58rem 0.7rem 0.62rem;
        gap: 0.28rem;
        align-content: end;
        align-self: end;
    }

    .home-avatar {
        min-height: 168px;
    }

    .home-strongest {
        font-size: 0.72rem;
        gap: 0.24rem;
    }

    .home-match-score {
        font-size: 0.88rem;
    }

    .home-match-bar {
        height: 8px;
    }
}

@media (min-width: 721px) and (max-width: 1023px) {
    .home-card {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .home-card-gallery {
        width: 100%;
        min-width: 0;
        min-height: 156px;
        align-self: start;
    }

    .home-avatar {
        min-height: 156px;
    }

    .home-card-main {
        align-content: start;
    }

    .home-match {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        justify-self: stretch;
        align-self: end;
        margin-right: 0;
        padding: 0.58rem 0.9rem 0.65rem;
        gap: 0.32rem 0.9rem;
    }

    .home-match-bar {
        grid-column: 1 / -1;
        height: 8px;
    }

    .home-strongest {
        text-align: left;
        font-size: 0.76rem;
        gap: 0.22rem;
    }

    .home-strongest span {
        justify-content: flex-start;
    }

    .home-match-score {
        text-align: right;
        font-size: 0.9rem;
    }
}

@media (max-width: 720px) {
    .home-screen {
        gap: 0.9rem;
        padding:
            calc(clamp(1rem, 3vh, 1.3rem) + 3rem)
            0.95rem
            1rem;
    }

    .home-top {
        gap: 0.55rem;
        padding: 0.52rem 0.95rem;
    }

    .home-nav-group {
        gap: 0.8rem;
    }

    .home-title {
        font-size: 1.65rem;
    }

    .home-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero {
        align-items: start;
        gap: 0.85rem;
        padding: 1rem 0.95rem;
        border-radius: 24px;
    }

    .home-install-card {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 0.8rem;
        padding: 0.95rem;
        border-radius: 22px;
        max-height: 640px;
    }

    .home-apps-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .home-apps-pills {
        justify-content: flex-start;
    }

    .home-apps-arrow {
        justify-self: start;
    }
    .home-facematch-card,
    .home-echo-card,
    .home-ripple-card {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        padding: 0.95rem;
        border-radius: 22px;
    }

    .home-update-card {
        padding: 0.72rem 0.8rem 0.74rem;
        border-radius: 18px;
    }

    .home-update-title {
        max-width: 24ch;
    }

    .home-install-icon-wrap {
        width: 56px;
        height: 56px;
        border-radius: 18px;
    }

    .home-install-mini {
        width: 100%;
        border-radius: 16px;
    }

    .home-install-actions {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, auto);
        align-items: stretch;
    }

    .home-install-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .home-install-btn-secondary {
        min-width: 92px;
    }

    .home-hero-link {
        width: 100%;
        justify-content: center;
    }

    .home-facematch-link,
    .home-echo-link {
        width: 100%;
    }

    .home-echo-actions {
        justify-items: stretch;
    }

    .home-echo-chip {
        width: 100%;
    }

    .home-card {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0.95rem;
    }

    .home-card-gallery {
        width: 100%;
        min-width: 0;
        min-height: 140px;
        display: flex;
        justify-content: stretch;
        align-self: start;
    }

    .home-card-main {
        align-content: start;
    }

    .home-avatar-primary {
        min-height: 140px;
    }

    .home-avatar-secondary {
        min-height: 140px;
    }

    .home-match {
        width: 100%;
        grid-template-columns: 1fr auto;
        align-items: center;
        justify-self: stretch;
        align-self: end;
        margin-right: 0;
        padding: 0.58rem 0.8rem 0.64rem;
        gap: 0.3rem 0.75rem;
    }

    .home-match-bar {
        grid-column: 1 / -1;
        height: 7px;
    }

    .home-strongest {
        text-align: left;
    }

    .home-strongest span {
        justify-content: flex-start;
    }

    .home-match-score {
        text-align: right;
    }
}

@media (max-width: 420px) {
    .home-screen {
        gap: 0.82rem;
        padding:
            calc(clamp(0.95rem, 2.8vh, 1.2rem) + 2.9rem)
            0.82rem
            0.95rem;
    }

    .home-top {
        padding: 0.4rem 0.82rem;
    }

    .home-nav-group {
        gap: 0.6rem;
    }

    .home-icon {
        width: 30px;
    }

    .home-explore {
        width: 32px;
        margin-right: 0;
    }

    .home-title {
        font-size: 1.2rem;
    }

    .home-center {
        gap: 0.22rem;
    }

    .home-hero {
        gap: 0.72rem;
        padding: 0.95rem 0.88rem;
    }

    .home-heading {
        font-size: 1rem;
        max-width: 14ch;
    }

    .home-copy {
        font-size: 0.84rem;
        line-height: 1.32;
    }

    .home-hero-meta {
        margin-top: 0.65rem;
        gap: 0.38rem;
    }

    .home-hero-pill {
        padding: 0.38rem 0.62rem;
        font-size: 0.72rem;
    }

    .home-hero-link {
        min-height: 44px;
        padding: 0.7rem 0.9rem;
    }

    .home-filters {
        gap: 0.45rem;
    }

    .home-filter {
        font-size: 0.8rem;
        padding: 0.46rem 0.78rem;
        white-space: normal;
    }

    .home-install-card,
    .home-growth-card,
    .home-facematch-card,
    .home-echo-card,
    .home-ripple-card,
    .home-card {
        padding: 0.88rem;
        border-radius: 20px;
    }

    .home-install-title,
    .home-growth-title,
    .home-apps-title,
    .home-facematch-title,
    .home-echo-title {
        font-size: 0.95rem;
    }

    .home-install-copy,
    .home-growth-text,
    .home-facematch-text,
    .home-echo-text {
        font-size: 0.82rem;
        line-height: 1.34;
    }

    .home-install-btn,
    .home-facematch-link,
    .home-echo-link {
        min-height: 44px;
    }

    .home-update-card {
        padding: 0.7rem 0.76rem 0.72rem;
    }

    .home-update-title {
        font-size: 0.78rem;
    }

    .home-update-copy {
        font-size: 0.66rem;
    }

    .home-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-pav,
    .home-connect,
    .home-cta {
        width: 100%;
    }
}

body.theme-super-admin .home-hero,
body.theme-super-admin .home-install-card,
body.theme-super-admin .home-growth-card,
body.theme-super-admin .home-apps-card,
body.theme-super-admin .home-facematch-card,
body.theme-super-admin .home-echo-card,
body.theme-super-admin .home-ripple-card,
body.theme-super-admin .home-update-card,
body.theme-super-admin .home-card,
body.theme-super-admin .home-card-lite,
body.theme-super-admin .home-empty {
    background: linear-gradient(160deg, rgba(12, 18, 25, 0.96), rgba(18, 26, 34, 0.9)) !important;
    border-color: rgba(160, 200, 190, 0.16) !important;
    color: var(--text) !important;
}

body.theme-super-admin .home-hero-link,
body.theme-super-admin .home-update-dismiss,
body.theme-super-admin .home-hero-dismiss,
body.theme-super-admin .home-filter,
body.theme-super-admin .home-pav,
body.theme-super-admin .home-connect,
body.theme-super-admin .home-cta,
body.theme-super-admin .home-hero-pill,
body.theme-super-admin .home-update-pill,
body.theme-super-admin .home-status,
body.theme-super-admin .home-distance,
body.theme-super-admin .home-verify-badge,
body.theme-super-admin .home-trust-chip,
body.theme-super-admin .home-match,
body.theme-super-admin .home-tag,
body.theme-super-admin .home-tag-soft,
body.theme-super-admin .home-apps-pill,
body.theme-super-admin .home-apps-arrow {
    background: rgba(18, 26, 34, 0.92) !important;
    border-color: rgba(160, 200, 190, 0.16) !important;
    color: var(--text) !important;
    box-shadow: 0 14px 24px rgba(2, 8, 12, 0.2) !important;
}

body.theme-super-admin .home-pav {
    background: var(--accent) !important;
    color: #1a1b23 !important;
    border-color: transparent !important;
    box-shadow: 0 10px 16px rgba(255, 122, 96, 0.18) !important;
}

body.theme-super-admin .home-connect {
    background: rgba(12, 18, 25, 0.66) !important;
    color: #ff9f8d !important;
    border-color: rgba(255, 122, 96, 0.7) !important;
    box-shadow: 0 10px 18px rgba(2, 8, 12, 0.16) !important;
}

body.theme-super-admin .home-install-btn {
    background: var(--accent) !important;
    color: #161d24 !important;
    border: 1px solid transparent !important;
    box-shadow: 0 12px 18px rgba(255, 122, 96, 0.24) !important;
}

body.theme-super-admin .home-growth-pill {
    background: rgba(255, 122, 96, 0.14) !important;
    color: #ffd2c8 !important;
}

body.theme-super-admin .home-growth-pill-soft {
    background: rgba(160, 200, 190, 0.08) !important;
    color: var(--text) !important;
}

body.theme-super-admin .home-growth-btn {
    background: #ff7b61 !important;
    color: #ffffff !important;
    border: 1px solid #ff7b61 !important;
    box-shadow: none !important;
}

body.theme-super-admin .home-apps-title {
    color: var(--text) !important;
}

body.theme-super-admin .home-growth-btn-secondary {
    background: rgba(12, 18, 25, 0.92) !important;
    color: #ffc3b6 !important;
    border: 1px solid rgba(255, 122, 96, 0.34) !important;
    box-shadow: 0 12px 22px rgba(2, 8, 12, 0.22) !important;
}

body.theme-super-admin .home-facematch-link,
body.theme-super-admin .home-echo-link {
    background: var(--accent) !important;
    color: #161d24 !important;
    box-shadow: 0 12px 18px rgba(255, 122, 96, 0.24) !important;
}

body.theme-super-admin .home-echo-chip {
    background: rgba(12, 18, 25, 0.86) !important;
    border-color: rgba(160, 200, 190, 0.18) !important;
    color: #d9f3ec !important;
    box-shadow: 0 14px 24px rgba(2, 8, 12, 0.18) !important;
}

body.theme-super-admin .home-install-btn-secondary {
    background: rgba(12, 18, 25, 0.86) !important;
    color: #d9f3ec !important;
    border: 1px solid rgba(160, 200, 190, 0.18) !important;
    box-shadow: 0 14px 24px rgba(2, 8, 12, 0.18) !important;
}

body.theme-super-admin .home-install-badge {
    background: rgba(160, 200, 190, 0.1) !important;
    color: #cfece4 !important;
}

body.theme-super-admin .home-install-mini {
    background: rgba(12, 18, 25, 0.74) !important;
    border-color: rgba(160, 200, 190, 0.16) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02), 0 10px 20px rgba(2, 8, 12, 0.14) !important;
}

body.theme-super-admin .home-install-mini-text {
    color: #d9f3ec !important;
}

body.theme-super-admin .home-pav.is-disabled {
    background: rgba(26, 39, 48, 0.32) !important;
    color: var(--text) !important;
}

body.theme-super-admin .home-pav.is-loading::before {
    border-color: rgba(12, 18, 25, 0.18) !important;
    border-top-color: #161d24 !important;
}

body.theme-super-admin .home-update-pill-success,
body.theme-super-admin .home-status {
    background: rgba(44, 151, 118, 0.16) !important;
    color: #8fe2c8 !important;
}

body.theme-super-admin .home-update-pill-soft,
body.theme-super-admin .home-tag-soft,
body.theme-super-admin .home-apps-pill,
body.theme-super-admin .home-apps-arrow {
    background: rgba(160, 200, 190, 0.08) !important;
    color: var(--text) !important;
}

body.theme-super-admin .home-card-kicker,
body.theme-super-admin .home-copy,
body.theme-super-admin .home-update-copy,
body.theme-super-admin .home-install-copy,
body.theme-super-admin .home-install-title,
body.theme-super-admin .home-facematch-text,
body.theme-super-admin .home-facematch-title,
body.theme-super-admin .home-echo-text,
body.theme-super-admin .home-echo-title,
body.theme-super-admin .home-reason,
body.theme-super-admin .home-empty-text,
body.theme-super-admin .home-empty-title,
body.theme-super-admin .home-strongest,
body.theme-super-admin .home-match-score,
body.theme-super-admin .home-card-info h3 span {
    color: var(--text) !important;
}

body.theme-super-admin .home-install-hint {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-super-admin .home-install-hint strong,
body.theme-super-admin .home-install-hint span {
    color: var(--text) !important;
}

body.theme-super-admin .home-install-hint p {
    color: rgba(244, 251, 249, 0.78) !important;
}

@keyframes home-install-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 115, 88, 0.34);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 115, 88, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 115, 88, 0);
    }
}

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

@media (max-width: 820px) {
    .home-top,
    .home-hero,
    .home-card,
    .home-empty-promo-host,
    .home-install-card,
    .home-update-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: 0 8px 18px rgba(24, 39, 48, 0.08) !important;
    }

    .home-icon,
    .home-explore {
        filter: none !important;
    }

    .home-hero,
    .home-card,
    .home-install-card,
    .home-update-card {
        transition: opacity 180ms ease, transform 180ms ease !important;
    }

    .home-notifications-link .home-icon {
        filter: brightness(0) saturate(100%) invert(68%) sepia(64%) saturate(4642%) hue-rotate(321deg) brightness(103%) contrast(102%) !important;
    }
}

/* ─── Hinge-style queue ─── */

.home-queue-area {
    margin-left: calc(-1 * clamp(1rem, 5vw, 2.5rem));
    margin-right: calc(-1 * clamp(1rem, 5vw, 2.5rem));
    padding: 0 clamp(1rem, 5vw, 2.5rem) calc(env(safe-area-inset-bottom, 0px) + 92px);
    overflow: visible;
}

/* Queue skeleton */
.home-queue-skeleton {
    padding: 0 0 16px;
}

.home-queue-skeleton[hidden],
.home-queue-skeleton.is-hidden {
    display: none !important;
}

.home-load-text-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 18px 16px 14px;
}

.home-load-phrase {
    font-size: 0.86rem;
    font-weight: 600;
    color: #2e6e62;
    transition: opacity 350ms ease;
    line-height: 1.4;
}

.home-load-phrase.is-fading {
    opacity: 0;
}

.home-load-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.home-load-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4db891;
    display: block;
    animation: home-dot-blink 1.3s ease-in-out infinite;
}

.home-load-dots span:nth-child(2) { animation-delay: 0.22s; }
.home-load-dots span:nth-child(3) { animation-delay: 0.44s; }

@keyframes home-dot-blink {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1.15); }
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.home-skeleton-hinge {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(255,100,60,.12), 0 2px 6px rgba(0,0,0,.04);
    animation: shimmer 1.6s ease-in-out infinite;
    background: linear-gradient(90deg, #fde8e2 25%, #fff5f2 50%, #fde8e2 75%);
    background-size: 200% 100%;
}

.hqs-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 14px;
}

.hqs-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,100,60,.18);
    flex-shrink: 0;
}

.hqs-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hqs-line {
    height: 13px;
    border-radius: 6px;
    background: rgba(255,100,60,.15);
    width: 60%;
}

.hqs-line-short {
    width: 35%;
}

.hqs-photo {
    width: 100%;
    aspect-ratio: 3/4;
    background: rgba(255,100,60,.1);
}

.hqs-photo-half {
    aspect-ratio: 4/3;
}

.hqs-chips {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
}

.hqs-chip {
    height: 28px;
    border-radius: 14px;
    background: rgba(255,100,60,.12);
    width: 80px;
}

.hqs-chip-long {
    width: 120px;
}

@keyframes hc-slide-out-left {
    0%   { opacity: 1; transform: translateX(0) rotate(0deg); }
    100% { opacity: 1; transform: translateX(-130%) rotate(-8deg); }
}
@keyframes hc-slide-out-right {
    0%   { opacity: 1; transform: translateX(0) rotate(0deg); }
    100% { opacity: 1; transform: translateX(130%) rotate(8deg); }
}
@keyframes hc-card-enter {
    0%   { opacity: 1; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Single Hinge card */
.hinge-card {
    background: #fff;
    border-radius: 20px;
    margin: 0;
    overflow: hidden;
    box-shadow: 0 6px 32px rgba(24,39,48,0.1), 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.055);
}
.hinge-card.hc-exit-left  { animation: hc-slide-out-left  260ms cubic-bezier(0.4,0,1,1) forwards; pointer-events: none; }
.hinge-card.hc-exit-right { animation: hc-slide-out-right 260ms cubic-bezier(0.4,0,1,1) forwards; pointer-events: none; }
.hinge-card.hc-enter      { animation: hc-card-enter 300ms cubic-bezier(0,0,0.2,1) both; }

/* Card header */
.hc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: linear-gradient(150deg, #f0faf7 0%, #e4f5ee 100%);
    padding: 18px 18px 14px;
    gap: 10px;
    border-bottom: 1px solid rgba(77,184,145,0.15);
}

.hc-name-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.hc-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a2530;
    line-height: 1.2;
}

.hc-age {
    font-size: 1rem;
    color: #5a7a72;
    font-weight: 500;
}

.hc-badge-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.hc-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .72rem;
    font-weight: 600;
    color: #2e9e78;
    background: #e4f7f0;
    border-radius: 20px;
    padding: 3px 9px;
    letter-spacing: .01em;
}

.hc-status-badge {
    display: inline-flex;
    align-items: center;
    font-size: .72rem;
    font-weight: 600;
    color: #7a6036;
    background: #fdf3e0;
    border-radius: 20px;
    padding: 3px 9px;
}

.hc-like-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    cursor: pointer;
    background: rgba(255,77,109,0.07);
    border: 1.5px solid rgba(255,77,109,0.18);
    border-radius: 14px;
    padding: 7px 11px;
    transition: background 180ms, border-color 180ms;
}

.hc-like-heart {
    font-size: 1.25rem;
    color: #ddc0c4;
    line-height: 1;
    transition: color 200ms, transform 200ms;
}

.hc-like-badge.is-liked {
    background: rgba(255,77,109,0.12);
    border-color: rgba(255,77,109,0.38);
}

.hc-like-badge.is-liked .hc-like-heart {
    color: #ff4d6d;
    transform: scale(1.18);
}

.hc-like-count {
    font-size: .72rem;
    font-weight: 700;
    color: #8a9a98;
}

/* Photos */
.hc-photo {
    width: 100%;
    overflow: hidden;
    background: #e8ede9;
    position: relative;
}

.hc-photo-1 {
    aspect-ratio: 4/5;
    max-height: 72vw;
}

.hc-photo-2,
.hc-photo-3 {
    aspect-ratio: 4/3;
}

.hc-photo-4 {
    aspect-ratio: 4/5;
    max-height: 72vw;
}

.hc-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hc-photo.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #d5efe8 0%, #bfe3d8 100%);
    min-height: 120px;
}

.hc-initials {
    font-size: 3rem;
    font-weight: 700;
    color: #4a8c78;
    line-height: 1;
    letter-spacing: -.02em;
    user-select: none;
}

/* Content blocks */
.hc-block {
    padding: 18px 18px 14px;
}

.hc-block-kicker {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #8aada6;
    margin-bottom: 10px;
}

/* Details block */
.hc-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hc-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    color: #1a2530;
    line-height: 1.4;
}

.hc-detail-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.hc-detail.is-empty .hc-detail-text {
    color: #aab8b5;
    font-style: italic;
}

/* Bio block */
.hc-bio-text {
    font-size: .92rem;
    color: #2c3e3a;
    line-height: 1.6;
}

.hc-bio-text.is-empty {
    color: #aab8b5;
    font-style: italic;
}

/* Interests block */
.hc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.hc-chip {
    font-size: .8rem;
    font-weight: 600;
    color: #2e7a68;
    background: #e4f7f0;
    border-radius: 20px;
    padding: 5px 13px;
    line-height: 1.4;
}

.hc-chip.is-empty {
    color: #aab8b5;
    background: #f2f4f3;
    font-style: italic;
    font-weight: 400;
}

/* Pave block */
.hc-pave-block {
    background: linear-gradient(145deg, #f0faf7 0%, #e8f5f0 100%);
    border-top: 1px solid rgba(77,184,145,0.2);
    border-bottom: 1px solid rgba(77,184,145,0.2);
    padding: 16px 18px;
}

.hc-pave-hint {
    font-size: .8rem;
    font-weight: 600;
    color: #2e7a68;
    margin-bottom: 10px;
}

.hc-pave-form {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.hc-pave-input {
    flex: 1;
    border: 1.5px solid #c8e2db;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: .9rem;
    background: #fff;
    color: #1a2530;
    resize: none;
    outline: none;
    line-height: 1.5;
    min-height: 42px;
    max-height: 110px;
    font-family: inherit;
    transition: border-color 180ms;
}

.hc-pave-input:focus {
    border-color: #4db891;
}

.hc-pave-input::placeholder {
    color: #a0bdb7;
}

.hc-pave-send {
    flex-shrink: 0;
    background: linear-gradient(135deg, #4db891 0%, #2e9e78 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 10px 16px;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 180ms, transform 120ms;
    white-space: nowrap;
}

.hc-pave-send:active {
    transform: scale(.96);
}

.hc-pave-send:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Match block */
.hc-match-block {
    padding: 18px 18px 14px;
}

.hc-match-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.hc-match-score {
    font-size: 1.1rem;
    font-weight: 800;
    color: #2e9e78;
    white-space: nowrap;
}

.hc-match-bar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e0eee9;
    overflow: hidden;
}

.hc-match-fill {
    height: 100%;
    background: linear-gradient(90deg, #4db891 0%, #2e9e78 100%);
    border-radius: 3px;
    transition: width 600ms ease;
}

.hc-trust-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hc-trust-chip {
    font-size: .75rem;
    font-weight: 600;
    color: #4a8c78;
    background: #eaf5f0;
    border-radius: 20px;
    padding: 3px 10px;
}

/* Card footer */
.hc-footer {
    padding: 12px 16px 18px;
    display: flex;
    gap: 10px;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: rgba(248,252,250,0.6);
}

.hc-reveal-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #25d366 0%, #128c4a 100%);
    color: #fff;
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 180ms, transform 120ms;
    box-shadow: 0 2px 10px rgba(18,140,74,0.28);
}

.hc-reveal-btn:active { transform: scale(0.96); }

.hc-reveal-btn.is-locked {
    background: linear-gradient(135deg, #e8f0ee 0%, #d8e8e4 100%);
    color: #5a8078;
    box-shadow: none;
    border: 1.5px solid rgba(77,184,145,0.25);
}

/* Queue end state */
.home-queue-end {
    text-align: center;
    padding: 60px 24px 40px;
}

.home-queue-end-icon {
    font-size: 2.8rem;
    margin-bottom: 14px;
}

.home-queue-end-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2530;
    margin-bottom: 8px;
}

.home-queue-end-text {
    font-size: .9rem;
    color: #6a8a84;
    line-height: 1.6;
    margin-bottom: 24px;
}

.home-queue-end-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4db891 0%, #2e9e78 100%);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    border: none;
    border-radius: 24px;
    padding: 12px 28px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 180ms;
}

.home-queue-end-btn:hover {
    opacity: .88;
}

/* ─── Fixed action bar ─── */

.home-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 14px 24px max(env(safe-area-inset-bottom, 0px), 14px);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0,0,0,.07);
    z-index: 120;
}

.home-action-bar[hidden] {
    display: none;
}

.hab-btn {
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 140ms, box-shadow 140ms;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    line-height: 1;
}

.hab-btn:active {
    transform: scale(.9);
}

.hab-dismiss {
    width: 54px;
    height: 54px;
    background: #fff;
    border: 2px solid #dde8e4;
    color: #8aada6;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    gap: 2px;
}

.hab-dismiss .hab-icon {
    font-size: 1.1rem;
    font-style: normal;
}

.hab-dismiss .hab-label {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hab-like {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff8a6e 0%, #ef644c 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(239,100,76,.40);
    gap: 2px;
    border: none;
}

.hab-like.is-liked {
    background: linear-gradient(135deg, #ef644c 0%, #d44830 100%);
    box-shadow: 0 4px 24px rgba(212,72,48,.46);
}

.hab-like-icon {
    font-size: 1.6rem;
    font-style: normal;
    line-height: 1;
    transition: transform 200ms;
}

.hab-like.is-liked .hab-like-icon {
    transform: scale(1.12);
}

.hab-like-count {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.hab-pav {
    width: 54px;
    height: 54px;
    background: #fff;
    border: 2px solid #4db891;
    color: #2e9e78;
    gap: 2px;
    box-shadow: 0 2px 10px rgba(77,184,145,.15);
}

.hab-pav .hab-icon {
    font-size: 1.1rem;
    font-style: normal;
}

.hab-pav .hab-label {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ─── Dark theme overrides for queue/action bar ─── */

.theme-super-admin .hinge-card {
    background: #1c2a36;
    box-shadow: 0 2px 20px rgba(0,0,0,.35);
}

.theme-super-admin .hc-name {
    color: #e8f2ee;
}

.theme-super-admin .hc-age {
    color: #7abfaa;
}

.theme-super-admin .hc-verified-badge {
    background: #1e3d30;
    color: #4db891;
}

.theme-super-admin .hc-status-badge {
    background: #2d2318;
    color: #d4a85a;
}

.theme-super-admin .hc-like-count {
    color: #6a8a84;
}

.theme-super-admin .hc-photo {
    background: #14202a;
}

.theme-super-admin .hc-photo.is-placeholder {
    background: linear-gradient(145deg, #1e3228 0%, #162a22 100%);
}

.theme-super-admin .hc-initials {
    color: #3a7a64;
}

.theme-super-admin .hc-block-kicker {
    color: #5a8a7a;
}

.theme-super-admin .hc-detail {
    color: #d0ddd9;
}

.theme-super-admin .hc-detail.is-empty .hc-detail-text {
    color: #4a6060;
}

.theme-super-admin .hc-bio-text {
    color: #c8ddd8;
}

.theme-super-admin .hc-bio-text.is-empty {
    color: #4a6060;
}

.theme-super-admin .hc-chip {
    background: #1e3228;
    color: #4db891;
}

.theme-super-admin .hc-chip.is-empty {
    background: #1e2a28;
    color: #4a6060;
}

.theme-super-admin .hc-pave-block {
    background: #162820;
    border-color: #1e3228;
}

.theme-super-admin .hc-pave-hint {
    color: #4a8a78;
}

.theme-super-admin .hc-pave-input {
    background: #1c2a22;
    border-color: #2e4a3a;
    color: #d0ddd9;
}

.theme-super-admin .hc-pave-input::placeholder {
    color: #3a6050;
}

.theme-super-admin .hc-match-bar {
    background: #1e2e28;
}

.theme-super-admin .hc-trust-chip {
    background: #1e3228;
    color: #3a9a74;
}

.theme-super-admin .hc-footer {
    border-color: #1e2e28;
}

.theme-super-admin .home-queue-skeleton .home-skeleton-hinge {
    background: linear-gradient(90deg, #1c2a36 25%, #22323e 50%, #1c2a36 75%);
    background-size: 200% 100%;
}

.theme-super-admin .hqs-avatar,
.theme-super-admin .hqs-line,
.theme-super-admin .hqs-photo,
.theme-super-admin .hqs-chip {
    background: rgba(255,255,255,.06);
}

.theme-super-admin .home-queue-end-title {
    color: #d0ddd9;
}

.theme-super-admin .home-queue-end-text {
    color: #5a8a7a;
}

.theme-super-admin .home-action-bar {
    background: rgba(16,24,32,.94);
    border-color: rgba(255,255,255,.08);
}

.theme-super-admin .hab-dismiss {
    background: #1c2a36;
    border-color: #2a3e4a;
    color: #5a8a7a;
}

.theme-super-admin .hab-pav {
    background: #1a2e24;
    border-color: #2e6050;
    color: #4db891;
}

/* ─────────────────────────────────────
   Redesigned Apps Card
   ───────────────────────────────────── */

.home-apps-group {
    gap: 0;
}

.home-apps-card {
    display: block;
    text-decoration: none;
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(150,200,190,0.45);
    border-radius: 22px;
    padding: 1.1rem 1.15rem 1.1rem;
    box-shadow: 0 4px 18px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
    grid-template-columns: unset;
    gap: 0;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.home-apps-card:active {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0,0,0,.1), 0 2px 8px rgba(255,120,94,.1);
}

@media (hover: hover) and (pointer: fine) {
    .home-apps-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(0,0,0,.1), 0 2px 8px rgba(255,120,94,.1);
    }
}

.home-apps-toprow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.28rem;
}

.home-apps-card .home-card-kicker {
    color: var(--muted);
    font-size: 0.67rem;
}

.home-apps-go {
    color: var(--accent-deep);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    display: inline-block;
}

.home-apps-heading {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.85rem;
    line-height: 1.2;
}

.home-apps-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
}

.home-app-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.34rem;
    padding: 0.76rem 0.3rem 0.66rem;
    border-radius: 14px;
    background: rgba(0,0,0,.04);
    border: 1px solid rgba(0,0,0,.06);
    transition: background 160ms ease;
}

.home-app-tile-fm {
    background: rgba(255, 120, 94, .12);
    border-color: rgba(255, 120, 94, .22);
}

.home-app-tile-echo {
    background: rgba(77, 184, 145, .12);
    border-color: rgba(77, 184, 145, .22);
}

.home-app-tile-ripple {
    background: rgba(100, 130, 230, .1);
    border-color: rgba(100, 130, 230, .2);
}

.home-app-icon {
    font-size: 1.52rem;
    line-height: 1;
    display: block;
}

.home-app-name {
    font-size: 0.67rem;
    font-weight: 700;
    color: var(--ink-soft);
    text-align: center;
    letter-spacing: .01em;
    line-height: 1.2;
}

/* Dark mode overrides */
.theme-super-admin .home-apps-card {
    background: linear-gradient(145deg, #192330 0%, #243547 100%);
    border-color: rgba(255, 120, 94, .18);
    box-shadow: 0 12px 36px rgba(0,0,0,.40);
}

.theme-super-admin .home-apps-card .home-card-kicker { color: rgba(255,255,255,.4); }
.theme-super-admin .home-apps-go { color: #ff785e; }
.theme-super-admin .home-apps-heading { color: #fff; }
.theme-super-admin .home-app-name { color: rgba(255,255,255,.76); }

.theme-super-admin .home-app-tile {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.07);
}

.theme-super-admin .home-app-tile-fm {
    background: rgba(255, 120, 94, .15);
    border-color: rgba(255, 120, 94, .24);
}

.theme-super-admin .home-app-tile-echo {
    background: rgba(77, 184, 145, .15);
    border-color: rgba(77, 184, 145, .24);
}

.theme-super-admin .home-app-tile-ripple {
    background: rgba(100, 162, 230, .15);
    border-color: rgba(100, 162, 230, .24);
}

/* ─── Compact hero & growth ─── */

.home-hero {
    padding: 0.92rem 1rem;
    border-radius: 22px;
}

.home-heading {
    font-size: clamp(1rem, 3.4vw, 1.4rem);
}

.home-copy {
    font-size: 0.85rem;
}

.home-hero-link {
    padding: 0.52rem 0.88rem;
    font-size: 0.84rem;
}

.home-growth-card {
    padding: 0.82rem 1rem;
    border-radius: 20px;
    gap: 0.52rem;
}

.home-growth-title {
    font-size: 0.9rem;
}

.home-growth-btn {
    min-height: 38px;
    font-size: 0.86rem;
    padding: 0 0.85rem;
}

/* ── Reveal button in action bar ── */
.hab-reveal { color: #2dbd7e; }
.hab-reveal.is-pro-feature { color: #ff784e; }
.hab-reveal .hab-icon { font-size: 1.1rem; }

/* ── Home feed promo card ── */
.home-promo-card {
    background: rgba(255,255,255,0.88);
    border: 1.5px solid rgba(255, 120, 78, .28);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.08), 0 2px 8px rgba(255,120,78,.1);
    /* Match the footprint of a real profile card so it sits in the flow
       instead of floating as a short block with empty space below it. */
    min-height: 60vh;
    display: flex;
}

.home-promo-inner {
    flex: 1;
    padding: 2rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;   /* fill the taller card cleanly */
    text-align: center;
    gap: 0;
}

.home-promo-icon {
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 0.6rem;
}

.home-promo-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d95f30;
    margin: 0 0 0.7rem;
}

.home-promo-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 0.65rem;
}

.home-promo-copy {
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 1.1rem;
}

.home-promo-perks {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.4rem;
}

.home-promo-perk {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: rgba(0,0,0,.05);
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 20px;
    padding: 0.3rem 0.75rem;
}

.home-promo-cta {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #ff784e 0%, #e05030 100%);
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    border-radius: 16px;
    padding: 0.92rem 1.5rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(255,100,60,.3);
    margin-bottom: 0.75rem;
    transition: transform 120ms, box-shadow 120ms;
}

.home-promo-cta:active { transform: scale(0.97); }

.home-promo-skip {
    background: none;
    border: none;
    font-size: 0.82rem;
    color: var(--muted);
    cursor: pointer;
    padding: 0.4rem;
    transition: color 140ms;
}

.home-promo-skip:hover { color: var(--text); }

/* Dark mode */
.theme-super-admin .home-promo-card {
    background: linear-gradient(160deg, #0d1420 0%, #16202e 55%, #1c2a1e 100%);
    box-shadow: 0 16px 48px rgba(0,0,0,.22), 0 2px 8px rgba(255,120,78,.12);
}

.theme-super-admin .home-promo-kicker { color: rgba(255,180,48,.85); }
.theme-super-admin .home-promo-title  { color: #fff; }
.theme-super-admin .home-promo-copy   { color: rgba(255,255,255,.55); }

.theme-super-admin .home-promo-perk {
    color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.1);
}

.theme-super-admin .home-promo-skip { color: rgba(255,255,255,.35); }
.theme-super-admin .home-promo-skip:hover { color: rgba(255,255,255,.6); }

.home-screen {
    padding-top: 0 !important;
}

.home-top.pavilla-shared-topbar {
    position: sticky !important;
    top: 0 !important;
}

.home-top.pavilla-shared-topbar .pavilla-shared-topbar-brand,
.home-top.pavilla-shared-topbar .pavilla-shared-topbar-title {
    color: var(--text);
}

.home-top.pavilla-shared-topbar + .home-discover {
    margin-top: 0.35rem;
}

/* ── Touch & performance optimizations ────────────────────────
   touch-action: manipulation removes the ~300 ms tap delay on
   mobile browsers without disabling pinch-zoom gestures.
   will-change on exit/enter keyframe classes promotes those
   elements to their own compositor layer during animation,
   producing smoother swipe transitions.
   ─────────────────────────────────────────────────────────── */

.hab-btn,
.hc-pave-send,
.hc-reveal-btn,
.home-queue-end-btn,
.home-hero-dismiss,
.home-install-btn,
.home-growth-btn,
.home-cta { touch-action: manipulation; }

.hinge-card.hc-enter,
.hinge-card.hc-exit-left,
.hinge-card.hc-exit-right { will-change: transform, opacity; }

/* Prevent hover transforms from firing on touch devices —
   they cause a brief "stuck hover" flash when tapping.
   Note: .home-card, .home-install-btn, .home-apps-card are
   now guarded with (hover: hover) and (pointer: fine) above. */
@media (hover: none) {
    .home-filter:hover { transform: none; }
    .home-hero-link:hover,
    .home-pav:hover,
    .home-connect:hover,
    .home-cta:hover { transform: none; box-shadow: none; }
}

/* ── Hinge card polish ─────────────────────────────────────── */

/* Slightly rounder card corners for a more modern feel       */
.hinge-card { border-radius: 22px; }

/* Smoother like button tap feedback */
.hc-like-badge:active {
    transform: scale(0.92);
    transition: transform 120ms;
}

/* Ensure the action bar safe-area padding is always correct  */
.home-action-bar {
    padding-bottom: max(env(safe-area-inset-bottom, 0px), 14px);
}

/* ═══════════════════════════════════════════════════════════════
   DATING SCREEN — MODERN REDESIGN
   All rules here override earlier declarations.
   ═══════════════════════════════════════════════════════════════ */

/* ── Layout ── */
.home-discover { gap: 0.7rem; }

/* ── Hero card — lighter, more focused ── */
.home-hero {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.93);
    border: 1px solid rgba(150,200,190,0.3);
    box-shadow: 0 3px 16px rgba(24,39,48,0.07);
    gap: 0.7rem;
}

.home-kicker {
    font-size: 0.63rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 0.1rem;
    opacity: 0.9;
}

.home-heading {
    font-size: clamp(0.92rem, 2.8vw, 1.12rem);
    letter-spacing: -0.03em;
    font-weight: 800;
    line-height: 1.18;
}

.home-copy {
    font-size: 0.8rem;
    line-height: 1.46;
    margin-top: 0.1rem;
}

.home-hero-meta { margin-top: 0.52rem; gap: 0.36rem; }

.home-hero-pill {
    padding: 0.27rem 0.55rem;
    font-size: 0.69rem;
    font-weight: 700;
    background: rgba(255,120,94,0.08);
    border: 1px solid rgba(255,120,94,0.14);
    color: #a54f3d;
    box-shadow: none;
}

.home-hero-link {
    padding: 0.44rem 0.84rem;
    font-size: 0.79rem;
    font-weight: 700;
    border-radius: 12px;
    background: rgba(255,255,255,0.97);
    border: 1.5px solid rgba(255,120,94,0.24);
    color: var(--accent-deep);
    box-shadow: 0 2px 8px rgba(240,96,72,0.07);
    transition: transform 120ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 140ms;
}
.home-hero-link:active { transform: scale(0.93); transition-duration: 60ms; }

/* ── Apps card — polished tiles ── */
.home-apps-group { gap: 0; }

.home-apps-card {
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(150,200,190,0.3);
    box-shadow: 0 3px 14px rgba(24,39,48,0.06);
    display: block; /* override old grid template */
    transition: transform 130ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 140ms;
}
.home-apps-card:active { transform: scale(0.985); transition-duration: 60ms; }

.home-apps-toprow { margin-bottom: 0.2rem; }
.home-apps-card .home-card-kicker { font-size: 0.62rem; color: var(--muted); }
.home-apps-go { color: var(--accent-deep); font-size: 0.95rem; }
.home-apps-heading { font-size: 0.92rem; letter-spacing: -0.02em; margin-bottom: 0.68rem; }

.home-apps-tiles { gap: 0.46rem; }

.home-app-tile {
    padding: 0.66rem 0.26rem 0.56rem;
    border-radius: 13px;
    gap: 0.24rem;
    transition: transform 110ms cubic-bezier(0.34,1.56,0.64,1);
}
.home-app-tile:active { transform: scale(0.88); transition-duration: 60ms; }

.home-app-icon { font-size: 1.38rem; }
.home-app-name { font-size: 0.61rem; font-weight: 700; letter-spacing: 0.01em; }

/* ── Filter tabs — spring transitions ── */
.home-filters { gap: 0.4rem; padding-bottom: 0.12rem; }

.home-filter {
    padding: 0.44rem 0.86rem;
    min-height: 34px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1.5px solid rgba(150,200,190,0.46);
    background: rgba(255,255,255,0.78);
    transition: background 140ms, color 140ms, border-color 140ms,
                transform 110ms cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 140ms;
}

.home-filter.is-active {
    background: linear-gradient(135deg, #ff896e, #ef5c42);
    border-color: transparent;
    box-shadow: 0 5px 14px rgba(255,120,94,0.3);
    color: #fff;
}
.home-filter:active { transform: scale(0.91); transition-duration: 60ms; }

/* ── Pav counter — fine, understated chip ── */
.home-pav-counter {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.18rem 0.56rem 0.18rem 0.46rem;
    gap: 0.34rem;
    border-radius: 99px;
    box-shadow: none;
}
.home-pav-counter-icon { width: auto; height: auto; font-size: 0.72rem; background: none; }

/* ── Search scope ── */
.home-search-scope { font-size: 0.78rem; padding-left: 0.04rem; letter-spacing: -0.01em; }

/* ── Hinge card — cleaner, more modern ── */
.hinge-card {
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(24,39,48,0.09), 0 1px 6px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
}

.hc-header {
    background: linear-gradient(150deg, #f6fcf9 0%, #edf8f3 100%);
    padding: 14px 16px 11px;
    border-bottom: 1px solid rgba(77,184,145,0.1);
    gap: 9px;
}

.hc-name { font-size: 1.16rem; font-weight: 800; letter-spacing: -0.02em; }
.hc-age  { font-size: 0.93rem; color: #5a7a72; font-weight: 500; }

.hc-badge-row { margin-top: 5px; gap: 5px; }

.hc-verified-badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 18px; }
.hc-status-badge   { font-size: 0.7rem; padding: 2px 8px; border-radius: 18px; }

.hc-like-badge { padding: 5px 9px; border-radius: 12px; gap: 2px; }
.hc-like-heart { font-size: 1.12rem; }
.hc-like-count { font-size: 0.67rem; }

.hc-block { padding: 13px 16px 11px; }
.hc-block-kicker { font-size: 0.65rem; margin-bottom: 7px; letter-spacing: 0.08em; }

.hc-detail { font-size: 0.85rem; gap: 7px; }
.hc-bio-text { font-size: 0.87rem; line-height: 1.56; }

.hc-chip {
    font-size: 0.76rem;
    padding: 4px 11px;
    border-radius: 18px;
    font-weight: 600;
}

.hc-pave-block { padding: 13px 16px; }
.hc-pave-hint  { font-size: 0.76rem; margin-bottom: 8px; }

.hc-pave-input {
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.86rem;
    min-height: 40px;
}

.hc-pave-send {
    border-radius: 12px;
    padding: 8px 15px;
    font-size: 0.83rem;
    transition: opacity 140ms, transform 100ms cubic-bezier(0.34,1.56,0.64,1);
}
.hc-pave-send:active { transform: scale(0.93); transition-duration: 60ms; }

/* ── Bottom action bar — polished floating bar ── */
.home-action-bar {
    gap: 20px;
    padding: 10px 28px max(env(safe-area-inset-bottom, 0px), 14px);
    background: rgba(248,253,251,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(150,200,190,0.2);
    box-shadow: 0 -3px 20px rgba(24,39,48,0.07);
}

.hab-dismiss {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 1.5px solid #dde8e3;
    color: #7a9fa0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 100ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 140ms;
}
.hab-dismiss:active { transform: scale(0.84); box-shadow: none; transition-duration: 50ms; }

.hab-like {
    width: 66px;
    height: 66px;
    background: linear-gradient(135deg, #ff9278 0%, #ef5a3e 100%);
    box-shadow: 0 8px 26px rgba(239,90,62,0.42);
    transition: transform 100ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 140ms;
}
.hab-like:active {
    transform: scale(0.87);
    box-shadow: 0 3px 12px rgba(239,90,62,0.3);
    transition-duration: 50ms;
}
.hab-like.is-liked {
    background: linear-gradient(135deg, #ef644c 0%, #d44830 100%);
    box-shadow: 0 8px 28px rgba(212,72,48,0.48);
}

.hab-like-icon { font-size: 1.48rem; }
.hab-like-count { font-size: 0.67rem; font-weight: 800; }

.hab-pav {
    width: 50px;
    height: 50px;
    border: 1.5px solid #4db891;
    background: #fff;
    color: #2e9e78;
    box-shadow: 0 2px 10px rgba(77,184,145,0.14);
    transition: transform 100ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 140ms;
}
.hab-pav:active { transform: scale(0.84); box-shadow: none; transition-duration: 50ms; }

.hab-dismiss .hab-label,
.hab-pav .hab-label { font-size: 0.55rem; font-weight: 800; letter-spacing: 0.06em; }

.hab-dismiss .hab-icon,
.hab-pav .hab-icon { font-size: 1.05rem; }

/* ── Card entry — spring feel ── */
@keyframes home-card-rise {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes home-card-filter-in {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Hinge card slide exit — cleaner arc ── */
@keyframes hc-slide-out-left {
    0%   { opacity: 1; transform: translateX(0) rotate(0deg); }
    100% { opacity: 1; transform: translateX(-130%) rotate(-8deg); }
}
@keyframes hc-slide-out-right {
    0%   { opacity: 1; transform: translateX(0) rotate(0deg); }
    100% { opacity: 1; transform: translateX(130%) rotate(8deg); }
}
@keyframes hc-card-enter {
    0%   { opacity: 1; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Same person refreshing (cached → real data): gently settle in place.
   Starts at partial opacity so the card never blanks out and "reappears". */
@keyframes hc-soft-settle {
    0%   { opacity: 0.6; }
    100% { opacity: 1; }
}
.hinge-card.hc-soft-settle { animation: hc-soft-settle 200ms ease both; }

/* Photo fades in softly as the real image replaces the placeholder */
.hc-photo img {
    animation: hc-photo-fade 280ms ease both;
}
@keyframes hc-photo-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Skeleton shimmer while a photo loads ──────────────────────────
   The container animates a soft sweep until its image finishes loading
   (JS adds .is-loaded). Also drives the cached placeholder so the card
   never looks frozen while real data is on its way. */
@keyframes hc-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.hc-photo {
    background: linear-gradient(
        100deg,
        #e6f1ec 25%,
        #f2f9f6 50%,
        #e6f1ec 75%
    );
    background-size: 200% 100%;
    animation: hc-shimmer 1.4s ease-in-out infinite;
}

/* Image present and painted — stop the shimmer, it's covered anyway */
.hc-photo.is-loaded {
    animation: none;
    background: #e8ede9;
}

/* Cached placeholder (initials, no photo yet): shimmer behind the initials */
.hc-photo.is-placeholder {
    background: linear-gradient(
        100deg,
        #d9efe7 25%,
        #ecf8f3 50%,
        #d9efe7 75%
    );
    background-size: 200% 100%;
    animation: hc-shimmer 1.4s ease-in-out infinite;
}
.hc-initials { position: relative; z-index: 1; }

/* ── Home credit footer ── */
.home-credit {
    font-size: 0.7rem;
    color: rgba(255,113,94,0.4);
    letter-spacing: 0.05em;
    padding-bottom: 0.5rem;
}

/* ════════════════════════════════════════════════════════════════
   ✦ PREMIUM DATING REDESIGN ✦
   A cohesive, beautiful pass. Appended last so it wins by source order.
   ════════════════════════════════════════════════════════════════ */

/* — Ambient layered backdrop — soft coral + mint blooms for depth — */
.page-home {
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(255, 138, 110, 0.16) 0%, transparent 42%),
        radial-gradient(110% 80% at 0% 100%, rgba(77, 184, 145, 0.18) 0%, transparent 46%),
        radial-gradient(100% 60% at 50% 30%, rgba(255, 255, 255, 0.55) 0%, transparent 60%),
        linear-gradient(180deg, #eaf6f1 0%, #ddeee8 100%);
    background-attachment: fixed;
}

/* — Header bar polish — */
.home-top {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* — The recommendation hint — softer, lighter — */
.home-search-scope {
    color: #6a8077;
    font-weight: 500;
    line-height: 1.45;
}

/* ─────────── THE PROFILE CARD ─────────── */
.hinge-card {
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 1px 2px rgba(24, 39, 48, 0.04),
        0 8px 24px rgba(24, 39, 48, 0.08),
        0 24px 56px rgba(46, 120, 99, 0.12);
    overflow: hidden;
}

/* Header — frosted, warm, refined typography */
.hc-header {
    background: linear-gradient(155deg, #fff6f2 0%, #f1faf6 100%);
    padding: 17px 18px 15px;
    border-bottom: 1px solid rgba(77, 184, 145, 0.12);
}
.hc-name {
    font-size: 1.32rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #16242e;
}
.hc-age { font-size: 1.02rem; color: #7d958c; font-weight: 500; }

.hc-verified-badge,
.hc-status-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.01em;
    box-shadow: 0 1px 3px rgba(24, 39, 48, 0.05);
}
.hc-verified-badge {
    color: #1f8e6a;
    background: linear-gradient(135deg, #e3f8ef, #d4f3e6);
}
.hc-status-badge {
    color: #b5642a;
    background: linear-gradient(135deg, #fff0d8, #ffe6c4);
}

/* Like badge — soft heart pill */
.hc-like-badge {
    background: linear-gradient(135deg, rgba(255, 100, 130, 0.08), rgba(255, 77, 109, 0.06));
    border: 1.5px solid rgba(255, 77, 109, 0.16);
    border-radius: 16px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(255, 77, 109, 0.08);
}

/* First photo — premium framing with a soft bottom scrim for depth */
.hc-photo-1,
.hc-photo-4 { aspect-ratio: 4 / 5; max-height: 76vw; }
.hc-photo-1::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 34%;
    background: linear-gradient(to top, rgba(12, 22, 28, 0.22), transparent);
    pointer-events: none;
}
.hc-photo img { transition: transform 6s ease; }

/* Content blocks — airy with hairline separators */
.hc-block { padding: 16px 18px 15px; }
.hc-block + .hc-block,
.hc-pave-block,
.hc-match-block { border-top: 1px solid rgba(46, 120, 99, 0.07); }

.hc-block-kicker {
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #ff7a60;
    margin-bottom: 11px;
}

/* About rows — each icon gets a soft tinted coin */
.hc-detail-grid { gap: 11px; }
.hc-detail { font-size: 0.92rem; color: #243530; gap: 11px; font-weight: 500; }
.hc-detail-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef9f4, #e4f4ec);
    box-shadow: inset 0 0 0 1px rgba(77, 184, 145, 0.12);
}

.hc-bio-text { font-size: 0.93rem; line-height: 1.62; color: #344842; }

/* Interest chips — gradient-tinted pills */
.hc-chips { gap: 8px; }
.hc-chip {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: 999px;
    color: #2e7a63;
    background: linear-gradient(135deg, #edf8f3, #e3f3eb);
    border: 1px solid rgba(77, 184, 145, 0.16);
}
.hc-chip.is-empty {
    color: #9fb0ab;
    background: rgba(150, 170, 165, 0.08);
    border-color: rgba(150, 170, 165, 0.16);
    font-style: italic;
    font-weight: 500;
}

/* Compatibility — glowing gradient bar */
.hc-match-score { font-weight: 800; color: #16242e; letter-spacing: -0.01em; }
.hc-match-bar {
    background: rgba(46, 120, 99, 0.1);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}
.hc-match-fill {
    background: linear-gradient(90deg, #4db891, #2e9e78);
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(77, 184, 145, 0.5);
}

/* Message block — soft inset card */
.hc-pave-block { background: linear-gradient(180deg, #fbfdfc, #f4fbf8); }
.hc-pave-hint { font-weight: 600; color: #46605a; }
.hc-pave-input {
    border-radius: 14px;
    border: 1.5px solid rgba(77, 184, 145, 0.22);
    background: #fff;
}
.hc-pave-input:focus {
    border-color: #4db891;
    box-shadow: 0 0 0 3px rgba(77, 184, 145, 0.14);
}
.hc-pave-send {
    border-radius: 14px;
    background: linear-gradient(135deg, #ff8a6e, #ef5a3e);
    box-shadow: 0 6px 16px rgba(239, 90, 62, 0.28);
    font-weight: 700;
}

/* Footer — refined link + WhatsApp button */
.hc-footer {
    padding: 14px 18px;
    border-top: 1px solid rgba(46, 120, 99, 0.08);
    background: linear-gradient(180deg, #ffffff, #f8fcfa);
}
.hc-reveal-btn {
    flex: 1;                 /* fill the footer now that "View profile" is gone */
    justify-content: center;
    background: linear-gradient(135deg, #2bd278, #1da851);
    color: #fff;
    border: 0;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

/* ─────────── BOTTOM ACTION BAR — luminous floating ─────────── */
.home-action-bar {
    background: rgba(252, 254, 253, 0.86);
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 -8px 32px rgba(24, 39, 48, 0.08);
}
.hab-like {
    background: linear-gradient(135deg, #ff9c80 0%, #ef5a3e 100%);
    box-shadow:
        0 10px 30px rgba(239, 90, 62, 0.45),
        0 0 0 6px rgba(239, 90, 62, 0.08);
}
.hab-dismiss,
.hab-pav { box-shadow: 0 4px 14px rgba(24, 39, 48, 0.08); }
.hab-pav {
    border-color: rgba(77, 184, 145, 0.55);
    background: linear-gradient(180deg, #ffffff, #f4fbf8);
}

/* While a card is animating out, dim + lock the bar so taps can't queue up */
.home-action-bar.is-busy {
    opacity: 0.55;
    pointer-events: none;
}
