/* ===== Sinh nhật trang chủ (style card hiện đại) ===== */
.sn-home-section {
    background: linear-gradient(120deg, #fff5f7 0%, #ffe8ec 45%, #fff0e8 100%);
    padding: 2.75rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}
.sn-home-section::before {
    content: '🎂';
    position: absolute;
    right: 4%;
    top: 1.5rem;
    font-size: 4rem;
    opacity: .08;
    pointer-events: none;
}
.sn-home-head {
    display: none;
}
.sn-home-weekchip { display: none !important; }
.sn-formal-card {
    position: relative;
    text-align: center;
    background: linear-gradient(165deg, #fff 0%, #fff8f8 50%, #fff6ee 100%);
    border: 1px solid rgba(198,40,40,.14);
    border-radius: 1.35rem;
    padding: 1.75rem 1.35rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 12px 34px rgba(183,28,28,.1);
    overflow: hidden;
}
.sn-formal-card::before,
.sn-formal-card::after {
    content: '';
    position: absolute;
    left: 1.1rem; right: 1.1rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ef9a9a, #fdd835, #ef9a9a, transparent);
}
.sn-formal-card::before { top: .75rem; }
.sn-formal-card::after { bottom: .75rem; }
.sn-formal-ornament {
    color: #c62828;
    font-size: .85rem;
    letter-spacing: .45em;
    margin-bottom: .45rem;
    opacity: .8;
}
.sn-formal-org {
    margin: 0;
    font-weight: 800;
    color: #64b5f6;
    font-size: inherit;
    letter-spacing: .01em;
    white-space: nowrap;
    text-transform: none;
}
.sn-formal-sep {
    color: #ef9a9a;
    font-weight: 800;
    margin: 0 .15rem;
}
.sn-formal-main {
    color: #c62828;
    font-weight: 800;
}
.sn-formal-title {
    margin: .35rem auto .15rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.05rem, 2.4vw, 1.45rem);
    color: #c62828;
    line-height: 1.45;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .35rem .45rem;
    max-width: 100%;
}
@media (max-width: 768px) {
    .sn-formal-title {
        font-size: 1.05rem;
    }
    .sn-formal-org {
        white-space: normal;
    }
    .sn-formal-sep { display: none; }
}
.sn-formal-month-fx {
    display: inline-block;
    margin-left: .05rem;
    padding: .12rem .7rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #e53935, #ff7043 55%, #fdd835);
    box-shadow: 0 6px 16px rgba(229,57,53,.28);
    animation: snMonthPulse 1.8s ease-in-out infinite;
    white-space: nowrap;
    font-size: .95em;
}
@keyframes snMonthPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 6px 16px rgba(229,57,53,.28); }
    50% { transform: scale(1.05); box-shadow: 0 8px 22px rgba(255,112,67,.4); }
}
.sn-formal-month { display: none !important; }
.sn-formal-amen { display: none !important; }
.sn-formal-people-label { display: none !important; }
.sn-formal-divider {
    width: 72px;
    height: 3px;
    margin: .85rem auto 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #ef5350, #fdd835, #ef5350);
}
.sn-formal-ornament { display: none !important; }
.sn-formal-org i,
.sn-formal-main i {
    opacity: .95;
}
.sn-formal-org i { color: #42a5f5; }
.sn-formal-main i { color: #ef5350; }
.sn-cake-ico {
    display: inline-flex;
    align-items: center;
    vertical-align: -0.18em;
    margin-right: .35rem;
    line-height: 0;
}
.sn-cake-ico svg {
    display: block;
    filter: drop-shadow(0 1px 1px rgba(198,40,40,.18));
}
.sn-msg-ico {
    color: #e53935;
    margin: 0 .25rem;
    font-size: .95em;
}
.sn-formal-message {
    margin: 0 auto 1.35rem;
    max-width: none;
    width: 100%;
    padding: .15rem .5rem 0;
    color: #4e342e;
    font-weight: 600;
    font-size: 1.02rem;
    line-height: 1.85;
    text-align: justify;
    text-justify: inter-word;
}
.sn-formal-message p {
    margin: 0 0 .9rem;
    text-align: justify;
    text-justify: inter-word;
    text-align-last: left;
    hyphens: auto;
    -webkit-hyphens: auto;
}
.sn-formal-message p:last-child {
    margin-bottom: 0;
}
.sn-formal-message-end {
    text-align: center !important;
    text-align-last: center !important;
    font-weight: 800;
    color: #c62828;
    letter-spacing: .01em;
    line-height: 1.7;
    margin-top: .35rem;
}
@media (max-width: 768px) {
    .sn-formal-message {
        padding: 0 .1rem;
        font-size: .95rem;
        line-height: 1.75;
    }
}
@media (min-width: 992px) {
    .sn-formal-card {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .sn-formal-message {
        font-size: 1.06rem;
        padding: .2rem .75rem 0;
    }
}
.sn-formal-card .sn-home-grid {
    margin: 0;
    text-align: left;
}
.sn-formal-card .sn-person-card {
    background: rgba(255,255,255,.92);
    box-shadow: 0 6px 18px rgba(198,40,40,.08);
}
.sn-home-empty-inner {
    margin-top: 1.25rem;
    background: rgba(255,255,255,.65);
}
.sn-home-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(1.45rem, 3.5vw, 1.9rem);
    color: #d32f2f;
    margin: 0 0 .25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.sn-cake { font-size: 1.35em; line-height: 1; }
.sn-home-sub {
    margin: .35rem 0 0;
    color: #5d4037;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.45;
    max-width: 42rem;
}
.sn-home-sub strong { color: #c62828; }
.sn-home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
}
@media (max-width: 1100px) {
    .sn-home-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .sn-home-grid { grid-template-columns: 1fr; gap: .85rem; }
    .sn-home-section { padding: 2.75rem 0 2.25rem; }
}
.sn-person-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.35rem 1rem 1.15rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(198,40,40,.07);
    border: 1px solid rgba(255,205,210,.45);
    transition: transform .2s ease, box-shadow .2s ease;
}
.sn-person-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(198,40,40,.14);
}
.sn-person-card.is-week {
    border-color: #ffb74d;
    background: linear-gradient(180deg, #fff 0%, #fff8e1 100%);
}
.sn-avatar-wrap {
    position: relative;
    width: 86px;
    height: 86px;
    margin: 0 auto 0.85rem;
}
.sn-avatar {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ef9a9a, #e57373);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.45rem;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(229,115,115,.3);
}
.sn-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sn-avatar-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: #e53935;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    border: 2px solid #fff;
}
.sn-person-name {
    font-size: 1rem;
    font-weight: 800;
    color: #37474f;
    margin: 0 0 .2rem;
    line-height: 1.3;
}
.sn-person-role {
    font-size: .8rem;
    color: #90a4ae;
    font-weight: 600;
    margin: 0 0 .85rem;
    min-height: 2.2em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sn-pill {
    display: inline-block;
    background: #fce4ec;
    color: #c2185b;
    font-weight: 800;
    font-size: .75rem;
    padding: .4rem .85rem;
    border-radius: 999px;
}
.sn-pill-week {
    background: #fff3e0;
    color: #ef6c00;
}
.sn-home-empty {
    text-align: center;
    background: rgba(255,255,255,.7);
    border-radius: 1.2rem;
    padding: 2.5rem 1rem;
    color: #90a4ae;
    font-weight: 700;
}
.sn-home-empty-ico { font-size: 2.2rem; margin-bottom: .5rem; }
.sn-wish-panel {
    margin-top: 1.25rem;
    margin-bottom: 0;
    background: rgba(255,255,255,.92);
    border-radius: 1.35rem;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 10px 28px rgba(198,40,40,.08);
    border: 1px solid rgba(255,205,210,.5);
}
.sn-wish-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 1rem;
    padding: .85rem 1rem;
    margin-bottom: .65rem;
}
.sn-wish-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ef9a9a, #e57373);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .85rem;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(229,115,115,.25);
}
.sn-wish-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sn-wish-body { flex: 1; min-width: 0; }
.sn-wish-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}
.sn-wish-head h3 {
    margin: 0;
    font-weight: 800;
    color: #c62828;
    font-size: 1.15rem;
}
.sn-wish-note { font-size: .8rem; color: #90a4ae; font-weight: 600; }
.sn-wish-form textarea {
    width: 100%;
    border: 1px solid #ffcdd2;
    border-radius: 1rem;
    padding: .85rem 1rem;
    font-weight: 600;
    resize: vertical;
    font-family: inherit;
}
.sn-wish-form textarea:focus {
    outline: none;
    border-color: #ef5350;
    box-shadow: 0 0 0 3px rgba(239,83,80,.15);
}
.sn-wish-actions { margin-top: .75rem; text-align: right; }
.sn-btn-send {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #e53935, #ef5350);
    color: #fff !important;
    border: none;
    border-radius: 999px;
    padding: .55rem 1.25rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(229,57,53,.25);
}
.sn-btn-send:hover { filter: brightness(1.05); color: #fff; }
.sn-wish-login { text-align: center; padding: .5rem 0 1rem; }
.sn-wish-list { margin-top: .85rem; }
.sn-wish-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .35rem;
    font-size: .85rem;
}
.sn-wish-meta strong { color: #c62828; }
.sn-wish-meta span { color: #90a4ae; font-weight: 600; }
.sn-wish-text { margin-top: .35rem; font-weight: 600; color: #546e7a; white-space: pre-wrap; }
.sn-wish-mod { margin-top: .5rem; display: flex; gap: .35rem; }
.sn-wish-empty { text-align: center; color: #90a4ae; font-weight: 700; margin: .5rem 0 0; }
