body.public-tributes-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #e2e8f0;
    overflow-x: clip;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background:
        linear-gradient(rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.68)),
        url('../background_login.jpg') center / cover fixed;
}



html.boot-auth-surface body.app-booting #app-loader {
    background: transparent;
}

body.public-tributes-page::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

html.boot-auth-surface body.app-booting,
body.auth-public-view-active {
    background:
        linear-gradient(rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.68)),
        url('../background_login.jpg') center / cover fixed;
    background-color: #0f172a;
    --header-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
    --header-border-color: rgba(255, 255, 255, 0.18);
    --header-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --header-backdrop-filter: blur(18px) saturate(145%);
    --footer-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
    --footer-border-color: rgba(255, 255, 255, 0.18);
    --footer-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    --footer-backdrop-filter: blur(18px) saturate(145%);
}

.public-tributes-overlay {
    position: fixed;
    top: var(--app-header-height, 70px);
    right: 0;
    bottom: var(--app-footer-height, 52px);
    left: 0;
    z-index: 1100;
    background:
        linear-gradient(rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.68)),
        url('../background_login.jpg') center / cover fixed;
    opacity: 1;
    transition: opacity 0.18s ease;
    overflow-y: auto;
    overflow-x: clip;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.boot-public-shell {
    min-height: 100%;
}

.boot-public-card {
    min-height: 160px;
}

.public-tributes-overlay::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.public-tributes-overlay.transition-hidden {
    opacity: 0;
    pointer-events: none;
}

.public-page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: clip;
}

.public-page-shell-inline {
    min-height: 100%;
}

.public-tributes-main-inline {
    min-height: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.public-shell-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding-top: env(safe-area-inset-top);
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.public-shell-header-inner {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    box-sizing: border-box;
}

.public-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.public-brand-button {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.public-brand-link h1 {
    margin: 0;
    line-height: 1;
}

.public-header-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.public-page-shell .brand-aquino {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #f59e0b;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-right: 2px;
}

.public-page-shell .brand-tree {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #f8fafc;
    font-size: 1.95rem;
    font-weight: 800;
}

.public-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0 1rem;
    border-radius: 999px;
    text-decoration: none;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.16);
    margin-left: auto;
}

button.public-login-link {
    border: none;
    cursor: pointer;
    font: inherit;
}

html.boot-auth-surface body.app-booting .header-content,
body.auth-public-view-active .header-content {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "branding actions";
}

html.boot-auth-surface body.app-booting #controls,
body.auth-public-view-active #controls {
    display: none;
}

html.boot-auth-surface body.app-booting .header-top-actions,
body.auth-public-view-active .header-top-actions {
    justify-self: end;
    justify-content: flex-end;
    margin-left: auto;
}

.public-tributes-main {
    flex: 1;
    width: 100%;
    max-width: 1180px;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 2rem 1rem calc(6.5rem + env(safe-area-inset-bottom));
    overflow-x: clip;
}

.public-hero-card,
.public-tributes-panel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.34);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.public-hero-card {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.public-hero-card::after,
.public-tributes-panel::after {
    content: '';
    position: absolute;
    inset: auto -10% -45% auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.28), rgba(251, 191, 36, 0));
    pointer-events: none;
}

.public-overline {
    margin: 0 0 0.6rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #fbbf24;
}

.public-hero-card h2,
.public-tributes-panel h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff7ed;
    line-height: 1.04;
}

.public-tributes-panel h3 {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.public-hero-copy {
    width: min(760px, 100%);
    margin: 1rem 0 0;
    font-size: 1.03rem;
    color: rgba(241, 245, 249, 0.9);
}

.public-tributes-panel {
    padding: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.public-tributes-panel::after {
    display: none;
}

.public-tributes-panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-inline: 0.2rem;
}

.public-tributes-count {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.86);
}

.public-tributes-list {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    padding: 0.2rem 0 0.6rem;
    width: 100%;
    overflow-x: clip;
}

.public-tributes-loading,
.public-tributes-empty,
.public-tributes-error {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 140px;
    padding: 1.2rem;
    border-radius: 22px;
    color: rgba(241, 245, 249, 0.92);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tribute-wall-item {
    display: grid;
    grid-template-columns: 128px minmax(240px, 340px);
    gap: 0.8rem;
    align-items: center;
    width: min(100%, 520px);
    max-width: 100%;
    padding: 0.2rem 0.35rem;
    border-radius: 24px;
    background: transparent;
    border: none;
    box-shadow: none;
    animation: tributeClusterFloat 7.5s ease-in-out infinite;
}

.tribute-wall-item--skeleton {
    pointer-events: none;
    animation: none;
}

.tribute-wall-item.is-reversed {
    grid-template-columns: minmax(240px, 340px) 128px;
}

.tribute-wall-item:nth-child(4n + 1) {
    margin-left: 0;
    animation-duration: 7.2s;
}

.tribute-wall-item:nth-child(4n + 2) {
    margin-left: clamp(1.4rem, 7vw, 6.5rem);
    animation-duration: 8.2s;
}

.tribute-wall-item:nth-child(4n + 3) {
    margin-left: clamp(0.4rem, 3vw, 1.6rem);
    animation-duration: 6.8s;
}

.tribute-wall-item:nth-child(4n + 4) {
    margin-left: clamp(2.6rem, 12vw, 9.5rem);
    animation-duration: 8.8s;
}

.tribute-wall-item.is-reversed:nth-child(4n + 2),
.tribute-wall-item.is-reversed:nth-child(4n + 4) {
    margin-left: auto;
    margin-right: 0;
}

.tribute-wall-item.is-reversed:nth-child(4n + 1) {
    margin-left: auto;
    margin-right: clamp(1.25rem, 7vw, 5rem);
}

.tribute-wall-item.is-reversed:nth-child(4n + 3) {
    margin-left: auto;
    margin-right: clamp(0.5rem, 4vw, 2.2rem);
}

.tribute-wall-item.is-reversed .tribute-wall-visual {
    order: 2;
}

.tribute-wall-item.is-reversed .tribute-wall-copy {
    text-align: right;
}

.tribute-wall-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 128px;
}

.tribute-wall-visual::before,
.tribute-wall-visual::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    opacity: 0.5;
}

.tribute-wall-visual::before {
    width: 118px;
    height: 118px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.32), rgba(251, 191, 36, 0));
    animation: bubbleDrift 7s ease-in-out infinite;
}

.tribute-wall-visual::after {
    width: 52px;
    height: 52px;
    top: 14px;
    right: 10px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
    animation: bubbleDrift 5.5s ease-in-out infinite reverse;
}

.tribute-wall-bubble {
    position: relative;
    z-index: 1;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(254, 215, 170, 0.82));
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.26);
    animation: bubbleDrift 6.5s ease-in-out infinite;
}

.tribute-wall-bubble--skeleton {
    background: rgba(255, 255, 255, 0.28);
    border: 3px solid rgba(255, 255, 255, 0.22);
}

.tribute-wall-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tribute-wall-bubble-fallback {
    font-size: 1.55rem;
    font-weight: 800;
    color: #7c2d12;
    text-transform: uppercase;
}

.tribute-wall-badge,
.tribute-wall-tree {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.24rem 0.5rem;
    border-radius: 999px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 0.72rem;
    font-weight: 700;
}

.tribute-wall-badge {
    right: 8px;
    bottom: -6px;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    color: #fff;
    background: rgba(190, 24, 93, 0.86);
    box-shadow: 0 10px 24px rgba(190, 24, 93, 0.25);
    font-size: 1.15rem;
    line-height: 1;
}

.tribute-wall-pill--skeleton,
.tribute-wall-badge--skeleton {
    min-height: 18px;
    min-width: 52px;
    background: rgba(255, 255, 255, 0.2);
    color: transparent;
    border: none;
    box-shadow: none;
}

.tribute-wall-badge--skeleton {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    padding: 0;
}

.tribute-wall-tree {
    left: 8px;
    bottom: -6px;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tribute-wall-copy {
    min-width: 0;
    width: fit-content;
    max-width: min(100%, 290px);
    padding: 0.4rem 0.2rem;
    border-radius: 0;
    background: transparent;
    border: none;
    box-sizing: border-box !important;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    text-align: center !important;
    margin: 0 auto !important;
}

.tribute-wall-copy--skeleton {
    display: grid;
    gap: 0.65rem;
}

.tribute-wall-copy > * {
    text-align: center !important;
}

.tribute-wall-item.is-reversed .tribute-wall-copy {
    justify-self: end;
}

.tribute-wall-dedication {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 1.7vw, 1.28rem);
    color: #fff7ed;
    line-height: 1.18;
}

.tribute-wall-recipient {
    margin: 0.42rem 0 0;
    font-size: 0.8rem;
    color: rgba(251, 191, 36, 0.96);
    text-transform: uppercase;
    letter-spacing: 0.085em;
}

.tribute-wall-signature {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.94);
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.tribute-wall-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: rgba(203, 213, 225, 0.86);
}

.tribute-wall-line {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.tribute-wall-meta--skeleton {
    margin-top: 0.2rem;
}

.tribute-wall-meta .material-symbols-outlined {
    font-size: 0.95rem;
}

/* Public Footer - Desktop */
.public-site-footer {
    width: 100%;
    min-height: 52px;
    height: 52px;
    max-height: 52px;
    background-color: rgba(30, 41, 59, 0.75);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
    font-size: 0.8rem !important;
    color: #cbd5e1;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow: hidden;
    z-index: 25;
}

.public-site-footer .footer-zone {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    height: 100%;
    overflow: hidden;
}

.public-site-footer .footer-zone-left {
    justify-content: flex-start;
}

.public-site-footer .footer-zone-center {
    justify-content: center;
}

.public-site-footer .footer-zone-right {
    justify-content: flex-end;
}

.public-site-footer .footer-text {
    margin: 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.public-site-footer .footer-text-left {
    color: #94a3b8;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.public-site-footer .footer-lang-control {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    min-width: 0;
    margin-left: auto;
    white-space: nowrap;
}

.public-site-footer .footer-lang-label {
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
}

.public-site-footer .footer-lang-label-short {
    display: none;
}

.public-site-footer .footer-lang-options {
    display: inline-flex;
    align-items: center;
}

.public-site-footer .footer-lang-buttons {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.public-site-footer .footer-lang-button {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    color: #cbd5e1;
    border-radius: 999px;
    padding: 0.34rem 0.8rem;
    font: inherit;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.public-site-footer .footer-lang-button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.public-site-footer .footer-lang-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12), 0 0 0 4px rgba(59, 130, 246, 0.28);
}

.public-site-footer .footer-lang-button.is-active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.92), rgba(37, 99, 235, 0.96));
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.public-site-footer .footer-lang-select-compact {
    display: none;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.3rem 2rem 0.3rem 0.85rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    min-width: 112px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23cbd5e1'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    background-size: 14px;
}

.public-site-footer .footer-lang-select-compact:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.public-site-footer a.gold-text {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.public-site-footer a.gold-text:hover {
    text-decoration: underline;
}

@keyframes bubbleDrift {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -8px, 0) scale(1.03);
    }
}

@keyframes tributeClusterFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -6px, 0);
    }
}

@media (max-width: 820px) {
    .public-tributes-list {
        align-items: center;
    }

    .tribute-wall-item,
    .tribute-wall-item.is-reversed {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: min(100%, 420px);
        gap: 0.5rem;
        margin-left: auto;
        margin-right: auto;
    }

    .tribute-wall-item.is-reversed .tribute-wall-visual,
    .tribute-wall-item.is-reversed .tribute-wall-copy {
        order: initial;
        text-align: center;
    }

    .tribute-wall-item:nth-child(n),
    .tribute-wall-item.is-reversed:nth-child(n) {
        margin-left: auto;
        margin-right: auto;
    }

    .tribute-wall-item {
        justify-items: center;
    }

    .tribute-wall-copy {
        max-width: 100%;
        padding: 0.5rem 0.2rem;
        justify-self: center;
        text-align: center;
    }

    .tribute-wall-meta {
        justify-content: center;
    }

    .public-tributes-panel-head {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Public Footer - Mobile */
@media (max-width: 640px) {
    .public-tributes-overlay {
        top: var(--app-header-height, 70px);
        bottom: var(--app-footer-height, 52px);
    }

    .public-shell-header-inner {
        padding: 0.9rem 1rem;
    }

    .public-brand-link {
        gap: 0.55rem;
    }

    .public-header-logo {
        width: 44px;
        height: 44px;
    }

    .brand-aquino {
        font-size: 1.08rem;
    }

    .brand-tree {
        font-size: 1.58rem;
    }

    .public-login-link {
        min-height: 38px;
        padding: 0 0.75rem;
        font-size: 0.92rem;
    }

    .public-tributes-main {
        max-width: none;
        padding: 1rem 0.75rem calc(8rem + env(safe-area-inset-bottom));
    }

    .public-tributes-main-inline {
        padding-top: 0.85rem;
        padding-bottom: 0.75rem;
    }

    .public-hero-card {
        margin-bottom: 1rem;
    }

    .public-tributes-panel-head {
        margin-bottom: 0.7rem;
    }

    .public-site-footer {
        min-height: 84px;
        height: 84px;
        max-height: 84px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "left left"
            "center right";
        align-items: center;
        justify-content: stretch;
        row-gap: 0.45rem;
        column-gap: 0.7rem;
        text-align: left;
        padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
        overflow: visible;
    }

    .public-site-footer .footer-zone-left {
        grid-area: left;
        flex: none;
        justify-content: flex-start;
        align-items: flex-start;
        height: auto;
        overflow: visible;
    }

    .public-site-footer .footer-zone-center {
        grid-area: center;
        flex: none;
        justify-content: flex-start;
        align-items: center;
        height: auto;
        overflow: visible;
    }

    .public-site-footer .footer-zone-right {
        grid-area: right;
        flex: none;
        justify-content: flex-end;
        align-items: center;
        height: auto;
        overflow: visible;
    }

    .public-site-footer .footer-text,
    .public-site-footer .footer-text-left {
        width: auto;
        margin: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.25;
    }

    .public-site-footer .footer-text {
        text-align: left;
        white-space: nowrap;
        line-height: 1;
    }

    .public-site-footer .footer-lang-control {
        justify-content: flex-end;
        gap: 0.55rem;
        margin-left: 0;
        width: auto;
        white-space: nowrap;
    }

    .public-site-footer .footer-lang-label-full {
        display: none;
    }

    .public-site-footer .footer-lang-label-short {
        display: inline;
    }

    .public-site-footer .footer-lang-buttons {
        display: none;
    }

    .public-site-footer .footer-lang-select-compact {
        display: inline-flex;
        min-width: 72px;
        padding: 0.34rem 1.7rem 0.34rem 0.68rem;
    }
}
