.ob-page {
    background:
        radial-gradient(circle at top, rgba(20, 184, 166, 0.06), transparent 28%),
        #f8fafc;
}

.ob-header {
    max-width: 760px;
    margin: 0 auto;
}

.ob-kicker {
    display: inline-block;
    margin-bottom: .85rem;
    padding: .45rem .9rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.10);
    color: #0f766e;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ob-title {
    margin: 0 0 .85rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.03em;
}

.ob-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 680px;
}

.ob-search .form-control {
    height: 58px;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
    padding: 0 1.25rem 0 3.1rem;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.ob-search-icon {
    position: absolute;
    left: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 4;
}

.ob-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 118, 110, 0.10);
    background: #fff;
    box-shadow: 0 18px 50px rgba(42, 33, 28, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}

.ob-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(42, 33, 28, 0.14);
}

.ob-card-top {
    height: 74px;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}

.ob-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-top: -48px;
}

.ob-avatar-frame {
    width: 116px;
    height: 116px;
    border-radius: 999px;
    padding: 5px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
}

.ob-avatar,
.ob-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
}

.ob-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ccfbf1, #99f6e4);
    color: #115e59;
    font-size: 2.4rem;
    font-weight: 800;
}

.ob-card-body {
    padding: 1.35rem 1.25rem .75rem;
    text-align: center;
    flex: 1;
}

.ob-name {
    margin: 0 0 1rem;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
}

.ob-dates {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: .85rem;
}

.ob-date-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .42rem .65rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: .86rem;
    font-weight: 600;
}

.ob-date-chip-death {
    background: rgba(15, 118, 110, 0.10);
    color: #0f766e;
}

.ob-location {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    color: #64748b;
    font-size: .92rem;
}

.ob-card-footer {
    padding: 0 1.25rem 1.35rem;
}

.ob-card-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.ob-card-actions .ob-btn {
    flex: 1;
}

.ob-btn {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(20, 184, 166, .22);
    transition: transform .2s ease, box-shadow .2s ease;
}

.ob-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(20, 184, 166, .30);
}

.ob-qr-btn {
    width: 48px;
    min-width: 48px;
    height: 48px;
    border: 1px solid rgba(15, 118, 110, .14);
    border-radius: 999px;
    background: #ffffff;
    color: #0f766e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .10);
    cursor: pointer;
    transition:
        transform .2s ease,
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

.ob-qr-btn:hover,
.ob-qr-btn:focus-visible {
    background: #ecfdf5;
    color: #0f766e;
    border-color: rgba(20, 184, 166, .42);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, .14);
    outline: none;
}

.ob-qr-icon {
    display: block;
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.ob-qr-finder,
.ob-qr-modules {
    fill: currentColor;
}

.ob-empty {
    padding: 3rem 1.5rem;
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 18px 50px rgba(42, 33, 28, 0.08);
}

.ob-pagination {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.ob-page-btn,
.ob-page-info {
    padding: .65rem 1rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #dbe4ee;
    color: #0f766e;
    font-weight: 700;
    text-decoration: none;
}

.ob-page-btn.is-disabled {
    color: #94a3b8;
    background: #f8fafc;
}

#privateMemorialModal[hidden] {
    display: none !important;
}

#privateMemorialModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ob-private-modal-card {
    background: #fff;
    padding: 24px;
    border-radius: 14px;
    max-width: 420px;
    width: 90%;
    text-align: center;
}

.ob-private-modal-card button {
    margin-top: 16px;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    background: #0f766e;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.ob-qr-modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
}

#qrImg {
    display: block;
    max-width: 260px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

#qrLink {
    display: inline-block;
    max-width: 100%;
    word-break: break-all;
    color: #0f766e;
    font-weight: 600;
}

.ob-card .ob-avatar-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: -58px !important;
    position: relative !important;
    z-index: 5 !important;
}

.ob-card .ob-avatar-frame {
    width: 132px !important;
    height: 132px !important;
    min-width: 132px !important;
    min-height: 132px !important;
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px !important;
    border: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow:
        0 14px 34px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.95) !important;
}

.ob-card .ob-avatar,
.ob-card .ob-avatar-placeholder {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}

.ob-card .ob-avatar {
    object-fit: cover !important;
    object-position: center center !important;
}

.ob-card .ob-avatar-placeholder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%) !important;
    color: #115e59 !important;
    font-size: 2.7rem !important;
    font-weight: 850 !important;
    line-height: 1 !important;
}

@media (max-width: 767.98px) {
    .ob-card .ob-avatar-wrap {
        margin-top: -56px !important;
    }

    .ob-card .ob-avatar-frame {
        width: 124px !important;
        height: 124px !important;
        min-width: 124px !important;
        min-height: 124px !important;
    }
}