/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --red: #3d3d3d;
    --red-dark: #2a2a2a;
    --red-light: #f2f2f2;
    --red-mid: rgba(61, 61, 61, 0.08);
    --navy: #16213e;
    --navy-mid: #2d2d44;
    --navy-light: #3d3d54;
    --white: #ffffff;
    --grey-50: #f9fafb;
    --grey-100: #f3f4f6;
    --grey-200: #e5e7eb;
    --grey-400: #9ca3af;
    --grey-500: #6b7280;
    --grey-700: #374151;
    --text-dark: #1a1a2e;
    --green: #10b981;
    --green-dark: #059669;
    --purple: #8b5cf6;
    --purple-dark: #7c3aed;
    --purple-light: #f5f3ff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.14);
    --radius: 10px;
    --radius-lg: 15px;
    --radius-pill: 25px;
    --header-h: 95px;
    --contact-h: 45px;
    --bar-total: 140px;
}

/* ============================================
   GLOBAL RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--grey-100);
    color: var(--text-dark);
}

/* ============================================
   CENTERING WRAPPER
   ============================================ */
.nav-center-wrapper {
    max-width: 70%;
    margin: 0 auto;
    width: 100%;
}

/* ============================================
   TOP NAVIGATION
   ============================================ */
.top-navigation {
    background-color: var(--white);
    border-bottom: 1px solid var(--navy-light);
    padding: 0;
}

.top-navigation .nav-center-wrapper>div {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

.top-left a {
    color: var(--navy);
    text-decoration: none;
    font-size: 0.82rem;
    margin-right: 16px;
    letter-spacing: 0.3px;
    transition: color 0.25s;
    position: relative;
    font-weight: 600;
}

.top-left a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.25s;
}

.top-left a:hover {
    color: var(--red);
}

.top-left a:hover::after {
    width: 100%;
}

.language-btn {
    background: var(--navy);
    border: 1px solid var(--navy-light);
    color: #fff;
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 0.76rem;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-btn:hover {
    color: var(--white);
    background: var(--red);
    border-color: var(--red-dark);
}

/* ============================================
   LANGUAGE DROPDOWN
   ============================================ */
.goog-te-banner-frame,
.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

.goog-te-gadget {
    display: none !important;
}

.language-btn {
    background: var(--navy);
    border: 1px solid var(--navy-light);
    color: #fff;
    padding: 3px 11px;
    border-radius: 20px;
    font-size: 0.76rem;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-btn:hover {
    color: var(--white);
    background: var(--red);
    border-color: var(--red-dark);
}

.language-btn .bi-chevron-down {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.22s cubic-bezier(.4, 0, .2, 1);
}

.language-btn.open .bi-chevron-down {
    transform: rotate(180deg);
    color: #fff;
}

/* Use lang-dropdown-* to avoid Bootstrap collision */
.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 165px;
    background: var(--white);
    border: 1.5px solid var(--grey-200);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 5px 0;
    z-index: 99999 !important;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.18s, transform 0.2s cubic-bezier(.4, 0, .2, 1);
}

.lang-dropdown-menu.open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.lang-dropdown-item {
    padding: 9px 16px;
    font-size: 13px;
    color: var(--grey-700);
    cursor: pointer;
    border-radius: 6px;
    margin: 2px 4px;
    transition: background 0.13s;
    display: block;
}

.lang-dropdown-item:hover {
    background: var(--grey-100);
    color: var(--text-dark);
}

.lang-dropdown-item.active {
    background: var(--red-light);
    font-weight: 700;
    color: var(--red);
}

/* Mobile: ensure dropdown visible on small screens */
@media (max-width: 768px) {
    .lang-dropdown-menu {
        right: 0;
        left: auto;
        min-width: 150px;
    }

    .lang-dropdown-item {
        font-size: 12px;
        padding: 8px 13px;
    }
}

/* ============================================
   MAIN HEADER
   ============================================ */
.main-header {
    background-color: var(--navy);
    border-bottom: 1px solid var(--navy-mid);
    position: fixed !important;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-md);
    width: 100%;
}

.main-header .nav-center-wrapper>.row {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    align-items: center;
}

.logo-img {
    height: 44px;
    width: auto;
    display: block;
}

.search-input {
    width: 100%;
    padding: 5px 38px 5px 16px;
    border: 1.5px solid var(--navy-light);
    border-radius: var(--radius-pill);
    background: var(--navy-mid);
    color: #fff;
    font-size: 0.86rem;
    transition: all 0.25s;
}

.search-input::placeholder {
    color: var(--grey-400);
}

.search-input:focus {
    outline: none;
    border-color: var(--red);
    background: #1e2a42;
    box-shadow: 0 0 0 3px rgba(61, 61, 61, 0.18);
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--grey-400);
    font-size: 1rem;
    pointer-events: none;
}

.btn-create,
.btn-create-mobile {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(61, 61, 61, 0.30);
}

.btn-create:hover,
.btn-create-mobile:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(61, 61, 61, 0.40);
}

/* ============================================
   CONTACT BAR
   ============================================ */
.contact-bar {
    background-color: var(--navy-mid);
    border-bottom: 1px solid var(--navy-light);
    margin: 7px;
    border-radius: 5px;
    z-index: 998;
    display: flex;
    justify-content: center;
    padding: 0 10px;
}

.contact-bar .nav-center-wrapper {
    width: 100%;
    max-width: 1200px;
}

.center-content-wrapper {
    position: sticky;
    top: 95px;
    z-index: 998;
    background-color: var(--white);
    box-shadow: 0 -10px 0 10px var(--white);
}

.contact-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
}

.contact-phone i {
    color: white;
    font-size: 1rem;
}

.badge-24-7 {
    background: var(--red);
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.contact-right-group {
    display: flex;
    align-items: center;
    gap: 18px;
}

.btn-chat {
    background: var(--green);
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.30);
}

.btn-chat:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.home-contact-bar {
    background-color: var(--navy-mid);
    border-bottom: 1px solid var(--grey-200);
    display: none;
}

/* ============================================
   MAIN LAYOUT
   ============================================ */
.content-wrapper {
    display: flex;
    background-color: var(--grey-100);
    max-width: 70%;
    margin: 0 auto;
    min-height: calc(100vh - var(--bar-total));
    gap: 0;
}

.mainPage {
    margin-top: 115px;
}

/* ============================================
   LEFT SIDEBAR
   ============================================ */
.left-sidebar {
    width: 250px;
    flex-shrink: 0;
    background-color: var(--white);
    border-right: 1px solid var(--grey-200);
    position: sticky;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
}

.sidebar-section {
    padding: 0;
}

.sidebar-header {
    background: var(--navy-mid);
    color: var(--white);
    padding: 14px 18px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--grey-200);
    position: sticky;
    top: 0;
    z-index: 10;
    margin: 5px;
    border-radius: 5px;
}

.sidebar-header i {
    color: white;
    font-size: 0.88rem;
}

.countries-list {
    padding: 6px 0;
}

.country-item {
    margin-bottom: 2px;
}

.country-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 18px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--grey-700);
    border-radius: 0 8px 8px 0;
    margin-right: 10px;
}

.country-header:hover {
    background-color: var(--red-mid);
    color: var(--red);
}

.country-header.active {
    background: var(--red);
    color: #fff;
    box-shadow: 0 2px 8px rgba(61, 61, 61, 0.30);
}

.country-header.active .country-count {
    opacity: 0.9;
}

.country-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.country-count {
    font-size: 0.75rem;
    opacity: 0.6;
    font-weight: 600;
}

.country-posts {
    display: none;
    padding-left: 18px;
    background: var(--grey-50);
    border-radius: 0 8px 8px 0;
    margin-right: 10px;
    overflow: hidden;
}

.country-posts.show {
    display: block;
}

.post-item {
    padding: 8px 14px;
    font-size: 0.82rem;
    color: var(--grey-500);
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.post-item:hover {
    background-color: var(--red-light);
    border-left-color: var(--red);
    color: var(--red-dark);
}

.post-item.active {
    background-color: var(--red-light);
    border-left-color: var(--red);
    color: var(--red);
    font-weight: 600;
}

/* ============================================
   CENTER CONTENT
   ============================================ */
.center-content {
    flex: 1;
    min-width: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}

.section-header-main {
    background: var(--white);
    padding: 12px 22px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--grey-400);
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--grey-200);
    position: sticky;
    top: var(--bar-total);
    z-index: 997;
}

.section-header-main i {
    font-size: 0.82rem;
}

.section-header-main i.chevron-sep {
    color: var(--grey-400);
    font-size: 0.7rem;
    margin: 0 2px;
}

.nav-link-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--grey-400);
    text-decoration: none;
    transition: all 0.2s;
    padding: 4px 8px;
    border-radius: 6px;
}

.nav-link-item:hover {
    color: var(--red);
    background-color: var(--red-light);
}

.nav-link-item.active {
    color: var(--red);
    font-weight: 700;
}

.nav-link-item i {
    font-size: 0.82rem;
}

.nav-link-item.active i {
    color: var(--red);
}

.mobile-section {
    border-bottom: 1px solid var(--grey-200);
}

.mobile-section-toggle {
    width: 100%;
    background-color: var(--white);
    border: none;
    padding: 13px 20px;
    text-align: left;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mobile-section-toggle:hover {
    background-color: var(--grey-50);
}

.mobile-section-toggle i.bi:first-child {
    margin-right: 8px;
    color: var(--red);
}

.toggle-icon {
    transition: transform 0.3s;
    color: var(--grey-400);
}

.mobile-section-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.mobile-section-content {
    padding: 10px 16px;
    background-color: var(--grey-50);
}

/* ============================================
   OBITUARY CARDS
   ============================================ */
.obituary-container {
    padding: 0;
}

.obituary-card {
    background: #fafafa;
    padding: 20px 18px;
    border-bottom: 1px solid var(--grey-200);
    border-bottom: 3px solid #1a1a1a;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    animation: cardFadeIn 0.4s ease both;
    border-left: none !important;
}

.obituary-card:nth-child(1) {
    animation-delay: .05s;
}

.obituary-card:nth-child(2) {
    animation-delay: .10s;
}

.obituary-card:nth-child(3) {
    animation-delay: .15s;
}

.obituary-card:nth-child(4) {
    animation-delay: .20s;
}

.obituary-card:nth-child(5) {
    animation-delay: .25s;
}

.obituary-card:nth-child(6) {
    animation-delay: .30s;
}

.obituary-card:nth-child(7) {
    animation-delay: .35s;
}

.obituary-card:nth-child(8) {
    animation-delay: .40s;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.obituary-card:hover {
    background: #f0f0f0;
    border-top: 3px solid #000;
    border-left: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    transform: translateY(-3px) scale(1.01);
}

.obituary-card:hover .memorial-name {
    color: #000;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.post-type-badge {
    background: #1a1a1a;
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.20);
}

.time-ago {
    font-size: 0.78rem;
    color: var(--grey-400);
}

.card-body-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.year {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.profile-image-container {
    position: relative;
    width: 130px;
    height: 130px;
}

.profile-ring {
    width: 130px;
    height: 130px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frame-overlay {
    position: absolute;
    top: -7px;
    left: -7px;
    width: 144px;
    height: 144px;
    background-image: url('../assets/memorial7.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 2;
}

.profile-image {
    width: 108px;
    height: 126px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transition: box-shadow 0.3s;
}

.memorial-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.memorial-details {
    font-size: 0.82rem;
    color: var(--grey-500);
    line-height: 1.6;
    margin-bottom: 8px;
}

.card-footer-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--grey-200);
    flex-wrap: wrap;
}

.tributes-count {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1a1a1a;
    font-size: 0.88rem;
    font-weight: 600;
}

.tributes-count i {
    font-size: 0.95rem;
}

/* ============================================
   REACTION BUTTONS
   ============================================ */
.reaction-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.reaction-btn {
    background: #f5f5f5;
    border: 1.5px solid #d0d0d0;
    color: #444;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(.4, 0, .2, 1);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
    white-space: nowrap;
    user-select: none;
}

.reaction-btn:hover {
    background: #e8e8e8;
    border-color: #1a1a1a;
    color: #000;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.reaction-btn.reaction-active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    border-width: 2px;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.reaction-btn.reaction-active .reaction-emoji {
    animation: reactionPop 0.35s cubic-bezier(.175, .885, .32, 1.275);
}

.reaction-emoji {
    font-size: 1rem;
    line-height: 1;
    display: inline-block;
}

.reaction-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.reaction-count {
    background: #1a1a1a;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
    margin-left: 2px;
}

@keyframes reactionPop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.6) rotate(-8deg);
    }

    70% {
        transform: scale(0.9) rotate(4deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

.reaction-burst {
    position: absolute;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 9999;
    animation: burstFly 0.8s ease-out forwards;
}

@keyframes burstFly {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    80% {
        opacity: 0.7;
    }

    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) scale(0.5);
    }
}

.share-btn {
    background: #f5f5f5;
    border: 1.5px solid #d0d0d0;
    color: #444;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.22s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.share-btn:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

.share-btn i {
    font-size: 0.92rem;
}

/* ============================================
   RIGHT SIDEBAR
   ============================================ */
.right-sidebar {
    width: 310px;
    flex-shrink: 0;
    background-color: var(--white);
    border-left: 1px solid var(--grey-200);
    position: sticky;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    overflow-y: auto;
    box-shadow: var(--shadow-sm);
}

.right-sidebar::-webkit-scrollbar {
    width: 5px;
}

.right-sidebar::-webkit-scrollbar-track {
    background: var(--white);
}

.right-sidebar::-webkit-scrollbar-thumb {
    background: var(--grey-200);
    border-radius: 3px;
}

.right-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--red);
}

.tributes-list {
    padding: 4px 0;
}

.tribute-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid var(--grey-200);
    cursor: pointer;
    transition: all 0.22s;
    gap: 10px;
}

.tribute-item:hover {
    background-color: var(--red-light);
    transform: translateX(3px);
}

.tribute-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--red);
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(61, 61, 61, 0.18);
}

.tribute-info {
    flex: 1;
    min-width: 0;
}

.tribute-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tribute-location {
    font-size: 0.73rem;
    color: var(--grey-400);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tribute-time {
    font-size: 0.7rem;
    color: var(--grey-400);
}

.tribute-more {
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    align-self: flex-start;
    background: var(--red-light);
    padding: 2px 7px;
    border-radius: 10px;
}

/* ============================================
   DETAIL PAGE WRAPPER
   ============================================ */
.detail-page {
    display: none;
    background: var(--grey-100);
    min-height: 100vh;
    padding: 0;
    margin-top: 115px;
}

.detail-page.active {
    display: block;
}

.detail-wrapper {
    max-width: 70%;
    margin: 0 auto;
    padding: 20px 20px 40px;
}

.detail-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 22px;
    font-size: 0.92rem;
    transition: all 0.25s;
}

.back-button:hover {
    gap: 14px;
    color: var(--red-dark);
}

/* ============================================
   NEW DETAIL PAGE — hero & layout
   ============================================ */
.new-memorial-hero {
    background: linear-gradient(160deg, var(--navy-light) 0%, var(--navy) 55%, #0d1526 100%);
    border-radius: 16px;
    padding: 36px 30px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--navy-light);
}

.new-memorial-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(100, 100, 180, 0.10) 0%, transparent 65%);
    pointer-events: none;
}

.new-download-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.25s;
    font-size: 1rem;
}

.new-download-btn:hover {
    background: var(--red);
    border-color: var(--red);
}

.new-hero-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}

.new-hero-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    margin-bottom: 24px;
}

.new-date-col {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    min-width: 80px;
}

.new-date-label {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 6px;
    font-weight: 500;
}

.new-date-day {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 4px;
}

.new-date-month {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.new-date-year {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.new-frame-wrap {
    position: relative;
    width: 260px;
    height: 260px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-golden-frame {
    position: absolute;
    margin-top: 22px;
    top: -12px;
    left: -12px;
    width: 294px;
    height: 264px;
    background-image: url('../assets/frame1.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 2;
}

.new-hero-photo {
    width: 185px;
    height: 205px;
    border-radius: 6px;
    object-fit: cover;
    position: relative;
    z-index: 1;
    margin-top: 26px;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08);
}

.new-hero-name {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    margin-top: 4px;
}

.new-age-badge {
    display: inline-block;
    background: var(--navy-mid);
    border: 1px solid var(--navy-light);
    color: #fff;
    padding: 4px 18px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.new-hero-location {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 24px;
}

.new-action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.new-action-btn {
    background: var(--navy-mid);
    border: 1px solid var(--navy-light);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.25s;
    white-space: nowrap;
}

.new-action-btn:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(61, 61, 61, 0.35);
}

.new-detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 22px;
    align-items: start;
}

.new-detail-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.new-about-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    border: 1px solid var(--grey-200);
    box-shadow: var(--shadow-sm);
}

.new-card-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.new-about-text {
    font-size: 0.94rem;
    line-height: 1.85;
    color: var(--grey-500);
    white-space: pre-line;
}

.new-comments-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--grey-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.new-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 1px solid var(--grey-200);
}

.new-comment-count-badge {
    background: var(--red-light);
    color: var(--red);
    border: 1px solid var(--grey-200);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.new-comments-list {
    padding: 0 24px;
}

.new-comment-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--grey-200);
}

.new-comment-item:last-child {
    border-bottom: none;
}

.new-comment-author {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.new-comment-msg {
    font-size: 0.86rem;
    color: var(--grey-500);
    line-height: 1.6;
    margin-bottom: 4px;
}

.new-comment-time {
    font-size: 0.74rem;
    color: var(--grey-400);
}

.new-tribute-form {
    padding: 22px 24px;
    border-top: 1px solid var(--grey-200);
    background: var(--grey-50);
}

.new-form-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.new-form-group {
    margin-bottom: 14px;
}

.new-form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--grey-700);
    margin-bottom: 6px;
}

.new-form-input {
    width: 100%;
    padding: 9px 14px;
    border: 1.5px solid var(--grey-200);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 0.88rem;
    color: var(--text-dark);
    transition: border-color 0.2s;
    font-family: inherit;
}

.new-form-input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(61, 61, 61, 0.1);
}

.new-form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--grey-200);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 0.88rem;
    color: var(--text-dark);
    min-height: 100px;
    resize: vertical;
    transition: border-color 0.2s;
    font-family: inherit;
}

.new-form-textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(61, 61, 61, 0.1);
}

.new-post-tribute-btn {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 3px 10px rgba(61, 61, 61, 0.25);
}

.new-post-tribute-btn:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(61, 61, 61, 0.35);
}

.new-detail-sidebar {
    position: sticky;
    top: 150px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.new-summary-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 18px;
    border: 1px solid var(--grey-200);
    box-shadow: var(--shadow-sm);
}

.new-summary-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--grey-200);
}

.new-summary-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--grey-200);
}

.new-summary-row:last-child {
    border-bottom: none;
}

.new-summary-icon {
    width: 30px;
    height: 30px;
    background: var(--grey-100);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-500);
    font-size: 0.88rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.new-summary-label {
    font-size: 0.71rem;
    color: var(--grey-400);
    margin-bottom: 3px;
}

.new-summary-value {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.new-sponsored-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--grey-200);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.new-sponsored-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--navy-mid);
}

.new-sponsored-label {
    font-size: 0.76rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.8px;
}

.new-add-ad-btn {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 0.71rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.new-add-ad-btn:hover {
    background: var(--red-dark);
}

.new-sponsored-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.new-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 8px;
}

.new-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grey-200);
    cursor: pointer;
    transition: background 0.2s;
}

.new-dot.active {
    background: var(--red);
}

.new-sponsored-btns {
    display: flex;
    gap: 10px;
    padding: 0 14px 14px;
}

.new-sponsored-contact-btn {
    flex: 1;
    background: #25d366;
    color: #fff;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}

.new-sponsored-contact-btn:hover {
    background: #1ebe5d;
}

.new-sponsored-view-btn {
    flex: 1;
    background: var(--red);
    color: #fff;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.new-sponsored-view-btn:hover {
    background: var(--red-dark);
}

/* ============================================
   FIXED BUTTONS
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 95px;
    right: 32px;
    background: var(--red);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(61, 61, 61, 0.38);
    transition: all 0.25s;
    z-index: 1000;
    font-size: 1.3rem;
}

.scroll-top:hover {
    background: var(--red-dark);
    transform: translateY(-4px);
}

.chat-button {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--green);
    color: #fff;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.38);
    font-size: 1.5rem;
    z-index: 1000;
    transition: all 0.25s;
}

.chat-button:hover {
    background: var(--green-dark);
    transform: scale(1.08);
}

/* ============================================
   CREATE MEMORIAL MODAL
   ============================================ */
.modal-content {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    color: #1a1a2e !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}

.modal-header {
    background: #ffffff !important;
    color: #1a1a2e !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 18px 24px !important;
}

.modal-header .btn-close {
    filter: none !important;
}

.modal-body .form-label {
    color: #1a1a2e !important;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
}

.modal-body .form-control,
.modal-body .form-select {
    background: #fff;
    border: 1px solid var(--grey-200);
    color: var(--text-dark);
    border-radius: 8px;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    background: var(--grey-50);
    border-color: var(--navy);
    color: var(--text-dark);
    box-shadow: 0 0 0 3px rgba(22, 33, 62, 0.1);
}

.modal-body .form-control::placeholder {
    color: var(--grey-400);
}

.modal-footer {
    border-top: 1px solid var(--grey-200);
}

.btn-modal-create {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 10px 26px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 3px 10px rgba(61, 61, 61, 0.28);
}

.btn-modal-create:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

/* ============================================
   SHARE YOUR FEELING MODAL
   ============================================ */
.sfm-content {
    background: var(--white) !important;
    border: none !important;
    border-radius: 16px !important;
    overflow: hidden;
}

.sfm-header {
    background: var(--white) !important;
    border-bottom: 1px solid var(--grey-200) !important;
    padding: 20px 24px !important;
}

.sfm-title {
    color: var(--text-dark) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
}

.sfm-header .btn-close {
    filter: none !important;
}

.sfm-body {
    padding: 24px !important;
    background: var(--white);
}

.sfm-footer {
    background: var(--white) !important;
    border-top: 1px solid var(--grey-200) !important;
    justify-content: flex-end !important;
    padding: 16px 24px !important;
}

.sfm-close-btn {
    background: var(--grey-100);
    border: 1.5px solid var(--grey-200);
    color: var(--grey-700);
    padding: 8px 22px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sfm-close-btn:hover {
    background: var(--grey-200);
}

/* Tribute type grid */
.sfm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sfm-card {
    background: var(--white);
    border: 1.5px solid var(--grey-200);
    border-radius: 14px;
    padding: 20px 16px 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(.4, 0, .2, 1);
}

.sfm-card:hover {
    border-color: var(--navy);
    background: var(--grey-50);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.sfm-card-img-wrap {
    background: #fdf8f0;
    border-radius: 10px;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
}

.sfm-card-icon-big {
    font-size: 3rem;
    line-height: 1;
}

.sfm-card-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.sfm-card-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.sfm-card-desc {
    font-size: 0.78rem;
    color: var(--grey-500);
    line-height: 1.4;
}

/* Tribute form step */
.sfm-back-btn {
    background: none;
    border: none;
    color: var(--grey-500);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    margin-bottom: 18px;
    transition: color 0.2s;
}

.sfm-back-btn:hover {
    color: var(--text-dark);
}

.sfm-form-wrap {
    background: var(--grey-50);
    border-radius: 12px;
    border: 1.5px solid var(--grey-200);
    overflow: hidden;
}

.sfm-form-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--grey-200);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
}

.sfm-form-header-icon {
    font-size: 1.8rem;
}

.sfm-form-header-text h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 2px;
}

.sfm-form-header-text p {
    font-size: 0.78rem;
    color: var(--grey-500);
    margin: 0;
}

.sfm-form-body {
    padding: 22px;
}

.sfm-field-group {
    margin-bottom: 16px;
}

.sfm-field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--grey-700);
    margin-bottom: 6px;
}

.sfm-field-input {
    width: 100%;
    padding: 9px 14px;
    border: 1.5px solid var(--grey-200);
    border-radius: 8px;
    background: var(--white);
    font-size: 0.88rem;
    color: var(--text-dark);
    font-family: inherit;
    transition: border-color 0.2s;
}

.sfm-field-input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(22, 33, 62, 0.10);
}

.sfm-field-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--grey-200);
    border-radius: 8px;
    background: var(--white);
    font-size: 0.88rem;
    color: var(--text-dark);
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s;
}

.sfm-field-textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(22, 33, 62, 0.10);
}

.sfm-file-input {
    width: 100%;
    padding: 8px 14px;
    border: 1.5px dashed var(--grey-200);
    border-radius: 8px;
    background: var(--white);
    font-size: 0.85rem;
    color: var(--grey-500);
    cursor: pointer;
}

.sfm-submit-btn {
    background: var(--navy);
    color: #fff;
    border: none;
    padding: 10px 26px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 3px 10px rgba(22, 33, 62, 0.25);
    margin-top: 4px;
}

.sfm-submit-btn:hover {
    background: var(--navy-mid);
    transform: translateY(-2px);
}

/* ============================================
   SEND FLOWERS MODAL
   ============================================ */
.flowers-modal-content {
    background: var(--white) !important;
    border: none !important;
    border-radius: 16px !important;
    overflow: hidden;
}

.flowers-modal-header {
    background: var(--white) !important;
    border-bottom: none !important;
    padding: 12px 16px 0 !important;
}

.flowers-modal-header .btn-close {
    filter: none !important;
}

.flowers-modal-layout {
    display: flex;
    min-height: 480px;
}

.flowers-left-panel {
    width: 220px;
    flex-shrink: 0;
    background: #eeeaf8;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.flowers-hotline-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.flowers-hotline-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    white-space: nowrap;
}

.flowers-hotline-desc {
    font-size: 0.8rem;
    color: var(--navy);
    line-height: 1.6;
}

.flowers-privacy-note {
    font-size: 0.74rem;
    color: var(--navy);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: auto;
    padding-top: 20px;
    opacity: 0.75;
}

.flowers-right-panel {
    flex: 1;
    padding: 28px 28px 10px;
    overflow-y: auto;
}

.flowers-form-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.flowers-form-group {
    margin-bottom: 16px;
}

.flowers-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--grey-700);
    margin-bottom: 6px;
}

.flowers-input {
    width: 100%;
    padding: 9px 14px;
    border: 1.5px solid var(--grey-200);
    border-radius: 8px;
    background: var(--white);
    font-size: 0.88rem;
    color: var(--text-dark);
    font-family: inherit;
    transition: border-color 0.2s;
}

.flowers-input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(22, 33, 62, 0.10);
}

.flowers-phone-row {
    display: flex;
    gap: 8px;
}

.flowers-phone-code {
    width: 100px;
    flex-shrink: 0;
    padding: 9px 12px;
    border: 1.5px solid var(--grey-200);
    border-radius: 8px;
    background: var(--white);
    font-size: 0.88rem;
    color: var(--text-dark);
    cursor: pointer;
    appearance: auto;
}

.flowers-phone-input {
    flex: 1;
}

.flowers-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--grey-200);
    border-radius: 8px;
    background: var(--white);
    font-size: 0.88rem;
    color: var(--text-dark);
    font-family: inherit;
    resize: vertical;
    min-height: 110px;
    transition: border-color 0.2s;
}

.flowers-textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(22, 33, 62, 0.10);
}

.flowers-modal-footer {
    background: var(--white) !important;
    border-top: 1px solid var(--grey-200) !important;
    padding: 16px 24px !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}

.flowers-cancel-btn {
    background: var(--white);
    border: 1.5px solid var(--grey-200);
    color: var(--grey-700);
    padding: 9px 22px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.flowers-cancel-btn:hover {
    background: var(--grey-100);
}

.flowers-submit-btn {
    background: var(--navy);
    color: #fff;
    border: none;
    padding: 9px 28px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 3px 10px rgba(22, 33, 62, 0.25);
}

.flowers-submit-btn:hover {
    background: var(--navy-mid);
    transform: translateY(-2px);
}

/* ============================================
   DONATE MODAL
   ============================================ */
.donate-modal-content {
    background: var(--white) !important;
    border: none !important;
    border-radius: 16px !important;
    overflow: hidden;
}

.donate-modal-header {
    background: var(--white) !important;
    border-bottom: none !important;
    padding: 12px 16px 0 !important;
}

.donate-modal-header .btn-close {
    filter: none !important;
}

.donate-modal-layout {
    display: flex;
    min-height: 520px;
}

.donate-left-panel {
    width: 220px;
    flex-shrink: 0;
    background: #eeeaf8;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.donate-support-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.donate-support-desc {
    font-size: 0.78rem;
    color: var(--navy);
    line-height: 1.6;
}

.donate-hotline-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: 8px;
}

.donate-hotline-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    white-space: nowrap;
}

.donate-privacy-note {
    font-size: 0.74rem;
    color: var(--navy);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: auto;
    padding-top: 16px;
    opacity: 0.75;
}

.donate-right-panel {
    flex: 1;
    padding: 28px 28px 10px;
    overflow-y: auto;
}

.donate-form-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.donate-form-group {
    margin-bottom: 16px;
}

.donate-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--grey-700);
    margin-bottom: 6px;
}

.donate-input {
    width: 100%;
    padding: 9px 14px;
    border: 1.5px solid var(--grey-200);
    border-radius: 8px;
    background: var(--white);
    font-size: 0.88rem;
    color: var(--text-dark);
    font-family: inherit;
    transition: border-color 0.2s;
}

.donate-input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(22, 33, 62, 0.10);
}

.donate-phone-row {
    display: flex;
    gap: 8px;
}

.donate-phone-code {
    width: 100px;
    flex-shrink: 0;
    padding: 9px 12px;
    border: 1.5px solid var(--grey-200);
    border-radius: 8px;
    background: var(--white);
    font-size: 0.88rem;
    color: var(--text-dark);
    cursor: pointer;
    appearance: auto;
}

.donate-phone-input {
    flex: 1;
}

.donate-amount-row {
    display: flex;
    gap: 8px;
}

.donate-amount-input {
    flex: 1;
}

.donate-currency {
    width: 90px;
    flex-shrink: 0;
    padding: 9px 10px;
    border: 1.5px solid var(--grey-200);
    border-radius: 8px;
    background: var(--white);
    font-size: 0.88rem;
    color: var(--text-dark);
    cursor: pointer;
    appearance: auto;
}

.donate-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--grey-200);
    border-radius: 8px;
    background: var(--white);
    font-size: 0.88rem;
    color: var(--text-dark);
    font-family: inherit;
    resize: vertical;
    min-height: 90px;
    transition: border-color 0.2s;
}

.donate-textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(22, 33, 62, 0.10);
}

.donate-modal-footer {
    background: var(--white) !important;
    border-top: 1px solid var(--grey-200) !important;
    padding: 16px 24px !important;
    justify-content: flex-end !important;
    gap: 10px !important;
}

.donate-cancel-btn {
    background: var(--white);
    border: 1.5px solid var(--grey-200);
    color: var(--grey-700);
    padding: 9px 22px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.donate-cancel-btn:hover {
    background: var(--grey-100);
}

.donate-submit-btn {
    background: var(--navy);
    color: #fff;
    border: none;
    padding: 9px 28px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 3px 10px rgba(22, 33, 62, 0.25);
}

.donate-submit-btn:hover {
    background: var(--navy-mid);
    transform: translateY(-2px);
}

/* ============================================
   SCROLLBARS
   ============================================ */
.left-sidebar::-webkit-scrollbar,
.right-sidebar::-webkit-scrollbar {
    width: 5px;
}

.left-sidebar::-webkit-scrollbar-track,
.right-sidebar::-webkit-scrollbar-track {
    background: var(--white);
}

.left-sidebar::-webkit-scrollbar-thumb,
.right-sidebar::-webkit-scrollbar-thumb {
    background: var(--grey-200);
    border-radius: 3px;
}

.left-sidebar::-webkit-scrollbar-thumb:hover,
.right-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--red);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--navy);
    border-top: 2px solid var(--red);
    padding: 18px 0;
}

.footer-inner {
    max-width: 70%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-logo {
    height: 36px;
    width: auto;
    opacity: 0.85;
}

.footer-center {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-center a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-center a:hover {
    color: #fff;
}

.footer-right {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

/* ============================================
   RESPONSIVE — 1400px
   ============================================ */
@media (max-width: 1400px) {

    .nav-center-wrapper,
    .content-wrapper,
    .detail-wrapper {
        max-width: 70%;
    }

    .new-detail-grid {
        grid-template-columns: 1fr 280px;
    }
}

/* ============================================
   RESPONSIVE — 1200px (tablet landscape)
   ============================================ */
@media (max-width: 1200px) {
    :root {
        --header-h: 65px;
        --bar-total: 115px;
    }

    .nav-center-wrapper,
    .content-wrapper,
    .detail-wrapper {
        max-width: 88%;
    }

    html,
    body {
        overflow-x: hidden;
    }

    .content-wrapper {
        overflow: hidden;
    }

    .right-sidebar {
        display: none;
    }

    .home-contact-bar {
        display: block;
    }

    .logo-img {
        height: 40px;
    }

    .mainPage {
        margin-top: var(--header-h);
    }

    .left-sidebar {
        top: var(--header-h);
        height: calc(100vh - var(--header-h));
    }

    .center-content-wrapper {
        top: var(--header-h);
        box-shadow: none;
    }

    .section-header-main {
        top: 110px;
    }

    .new-detail-grid {
        grid-template-columns: 1fr 260px;
    }

    .obituary-container {
        padding-top: 40px;
    }
}

/* ============================================
   RESPONSIVE — 991px (tablet portrait)
   ============================================ */
@media (max-width: 991px) {

    .nav-center-wrapper,
    .content-wrapper,
    .detail-wrapper {
        max-width: 95%;
    }

    html,
    body {
        overflow-x: hidden;
    }

    .content-wrapper {
        overflow: hidden;
    }

    .center-content {
        min-width: 0;
    }

    .left-sidebar {
        display: none;
    }

    .home-contact-bar {
        display: block;
    }

    .logo-img {
        height: 38px;
    }

    .center-content-wrapper {
        top: var(--header-h);
    }

    .section-header-main {
        top: 110px;
    }

    .new-detail-grid {
        grid-template-columns: 1fr;
    }

    .new-detail-sidebar {
        position: relative;
        top: 0;
    }

    /* Modal responsiveness */
    .sfm-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flowers-modal-layout,
    .donate-modal-layout {
        flex-direction: column;
    }

    .flowers-left-panel,
    .donate-left-panel {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        align-items: flex-start;
        padding: 20px 20px 16px;
    }

    .flowers-hotline-number,
    .donate-hotline-number {
        font-size: 1.1rem;
    }

    .flowers-privacy-note,
    .donate-privacy-note {
        margin-top: 0;
        padding-top: 0;
        width: 100%;
    }
}

/* ============================================
   RESPONSIVE — 768px (mobile)
   ============================================ */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
    }

    .nav-center-wrapper,
    .content-wrapper {
        max-width: 100%;
        padding: 0 14px;
        min-width: 0;
    }

    .detail-wrapper {
        max-width: 100%;
        padding: 100px 14px 85px;
        min-width: 0;
    }

    .nav-center-wrapper {
        padding: 0 2px;
    }

    .top-navigation {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1001;
    }

    .main-header {
        position: fixed !important;
        top: 34px !important;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        margin-bottom: 15px !important;
    }

    body {
        padding-top: 96px;
    }

    .center-content-wrapper {
        position: sticky !important;
        top: 86px !important;
        z-index: 998;
    }

    .section-header-main {
        position: sticky !important;
        top: 50px !important;
        z-index: 997;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }

    .section-header-main::-webkit-scrollbar {
        display: none;
    }

    .left-sidebar {
        display: none;
    }

    .right-sidebar {
        display: none;
    }

    .center-content {
        min-width: 0;
    }

    .top-left {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .top-left::-webkit-scrollbar {
        display: none;
    }

    .logo-img {
        height: 36px;
    }

    .main-header .nav-center-wrapper>.row {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        gap: 15px !important;
    }

    .btn-create-mobile {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .search-input {
        font-size: 0.82rem;
        padding: 6px 34px 6px 14px;
    }

    .contact-bar {
        overflow: hidden;
        padding: 0 5px;
    }

    .contact-phone {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .contact-phone i {
        font-size: 0.8rem;
    }

    .contact-phone span {
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .contact-hours-text {
        display: none;
    }

    .btn-chat {
        font-size: 0.75rem;
        padding: 5px 10px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .contact-right-group {
        gap: 10px;
    }

    .obituary-card {
        padding: 16px 12px;
    }

    .profile-section {
        gap: 12px;
    }

    .profile-image-container {
        width: 110px;
        height: 110px;
    }

    .profile-ring {
        width: 110px;
        height: 110px;
    }

    .frame-overlay {
        width: 124px;
        height: 124px;
        top: -6px;
        left: -6px;
    }

    .profile-image {
        width: 90px;
        height: 104px;
    }

    .year {
        font-size: 0.92rem;
    }

    .memorial-name {
        font-size: 1rem;
    }

    .memorial-details {
        font-size: 0.8rem;
    }

    .card-footer-row {
        flex-direction: column;
        gap: 8px;
    }

    .reaction-btn {
        padding: 4px 9px;
        font-size: 0.76rem;
    }

    .reaction-emoji {
        font-size: 0.9rem;
    }

    .reaction-label {
        font-size: 0.68rem;
    }

    .share-btn {
        padding: 5px 11px;
        font-size: 0.78rem;
    }

    .new-hero-body {
        gap: 14px;
    }

    .new-frame-wrap {
        width: 180px;
        height: 180px;
    }

    .new-golden-frame {
        width: 204px;
        height: 204px;
    }

    .new-hero-photo {
        width: 128px;
        height: 142px;
    }



    .new-hero-title {
        font-size: 1.25rem;
    }
    body {
        padding-top: 96px;
    }

    .center-content-wrapper {
        position: sticky !important;
        top: 86px !important;
        z-index: 998;
    }

    .section-header-main {
        position: sticky !important;
        top: 50px !important;
        z-index: 997;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }

    .section-header-main::-webkit-scrollbar {
        display: none;
    }

    .left-sidebar {
        display: none;
    }

    .right-sidebar {
        display: none;
    }

    .center-content {
        min-width: 0;
    }

    .top-left {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .top-left::-webkit-scrollbar {
        display: none;
    }

    .logo-img {
        height: 36px;
    }

    .main-header .nav-center-wrapper>.row {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        gap: 15px !important;
    }

    .btn-create-mobile {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .search-input {
        font-size: 0.82rem;
        padding: 6px 34px 6px 14px;
    }

    .contact-bar {
        overflow: hidden;
        padding: 0 5px;
    }

    .contact-phone {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .contact-phone i {
        font-size: 0.8rem;
    }

    .contact-phone span {
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .contact-hours-text {
        display: none;
    }

    .btn-chat {
        font-size: 0.75rem;
        padding: 5px 10px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .contact-right-group {
        gap: 10px;
    }

    .obituary-card {
        padding: 16px 12px;
    }

    .profile-section {
        gap: 12px;
    }

    .profile-image-container {
        width: 110px;
        height: 110px;
    }

    .profile-ring {
        width: 110px;
        height: 110px;
    }

    .frame-overlay {
        width: 124px;
        height: 124px;
        top: -6px;
        left: -6px;
    }

    .profile-image {
        width: 90px;
        height: 104px;
    }

    .year {
        font-size: 0.92rem;
    }

    .memorial-name {
        font-size: 1rem;
    }

    .memorial-details {
        font-size: 0.8rem;
    }

    .card-footer-row {
        flex-direction: column;
        gap: 8px;
    }

    .reaction-btn {
        padding: 4px 9px;
        font-size: 0.76rem;
    }

    .reaction-emoji {
        font-size: 0.9rem;
    }

    .reaction-label {
        font-size: 0.68rem;
    }

    .share-btn {
        padding: 5px 11px;
        font-size: 0.78rem;
    }

    .new-hero-body {
        gap: 14px;
    }

    .new-frame-wrap {
        width: 180px;
        height: 180px;
    }

    .new-golden-frame {
        width: 204px;
        height: 204px;
    }

    .new-hero-photo {
        width: 128px;
        height: 142px;
    }



    .new-hero-title {
        font-size: 1.25rem;
    }

    .new-hero-name {
        font-size: 1.3rem;
    }

    .new-action-btn {
        font-size: 0.72rem;
        padding: 10px 4px;
        white-space: normal;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 48px;
    }

    .new-action-buttons {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .new-memorial-hero {
        padding: 24px 14px 22px;
    }

    .new-about-card {
        padding: 18px 16px;
    }

    .new-tribute-form {
        padding: 16px;
    }

    .new-comments-header {
        padding: 14px 16px;
    }

    .new-comments-list {
        padding: 0 16px;
    }

    /* Modal mobile */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .sfm-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .sfm-body {
        padding: 16px !important;
    }

    .sfm-card {
        padding: 14px 10px;
    }

    .sfm-card-icon-big {
        font-size: 2.2rem;
    }

    .flowers-modal-layout,
    .donate-modal-layout {
        flex-direction: column;
    }

    .flowers-left-panel,
    .donate-left-panel {
        width: 100%;
        padding: 18px 16px;
        flex-direction: column;
        gap: 8px;
    }

    .flowers-right-panel,
    .donate-right-panel {
        padding: 18px 16px 8px;
    }

    .flowers-hotline-number,
    .donate-hotline-number {
        font-size: 1.15rem;
    }

    .donate-support-title {
        font-size: 0.85rem;
    }

    .home-contact-bar {
        display: block;
    }

    .footer-inner {
        max-width: 100%;
        padding: 0 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .footer-center {
        gap: 16px;
        justify-content: center;
    }
}

/* ============================================
   RESPONSIVE — 480px (small mobile)
   ============================================ */
@media (min-width: 320px) and (max-width: 768px) {
    .top-left a {
        margin-right: 9px;
        font-size: 0.73rem;
        margin-left: 5px;
    }

    .top-navigation button {
        padding: 6px 10px;
        font-size: 0.72rem;
        margin-right: 5px;
    }

    .logo-img {
        height: 32px;
        width: auto;
        margin-left: 0;
    }

    .btn-create-mobile {
        font-size: 0.75rem;
        padding: 6px 11px;
        margin-right: 5px;
    }

    .search-input {
        font-size: 0.82rem;
        padding: 8px 34px 8px 14px;
    }

    .badge-24-7 {
        font-size: 0.68rem;
        padding: 2px 7px;
    }

    .main-header .nav-center-wrapper>.row {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
        gap: 5px !important;
    }

    .contact-phone span {
        font-size: 0.72rem;
    }

    .btn-chat {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .contact-phone {
        gap: 4px;
    }

    .btn-chat-text-extra {
        display: none;
    }

    .obituary-card {
        padding: 12px 8px;
    }

    .profile-image-container {
        width: 95px;
        height: 95px;
    }

    .profile-ring {
        width: 95px;
        height: 95px;
    }

    .frame-overlay {
        width: 109px;
        height: 109px;
    }

    .profile-image {
        width: 80px;
        height: 100px;
    }

    .year {
        font-size: 0.85rem;
    }

    .memorial-name {
        font-size: 0.92rem;
    }

    .memorial-details {
        font-size: 0.76rem;
    }

    .new-memorial-hero {
        padding: 22px 14px;
    }

    .new-hero-body {
        gap: 10px;
    }

    .new-frame-wrap {
        width: 150px;
        height: 150px;
    }

    .new-golden-frame {
        width: 174px;
        height: 154px;
    }

    .new-hero-photo {
        width: 108px;
        height: 118px;
    }



    .new-hero-title {
        font-size: 1.1rem;
    }

    .new-hero-name {
        font-size: 1.15rem;
    }

    .sfm-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .sfm-card-icon-big {
        font-size: 1.8rem;
    }

    .sfm-card-name {
        font-size: 0.78rem;
    }

    .sfm-card-desc {
        font-size: 0.7rem;
    }

    .mobile-section {
        margin-top: -10px !important;
    }

    .detail-page {
        margin-top: 5px !important;
    }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 24px !important;
    right: 24px !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: 999999 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    align-items: flex-end;
}

.custom-toast {
    background: var(--white);
    border-left: 5px solid var(--navy);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    max-width: 450px;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    animation: toastSlideIn 0.4s cubic-bezier(.175, .885, .32, 1.275) both;
    position: relative;
}

.custom-toast.toast-closing {
    animation: toastSlideOut 0.3s ease-in forwards;
}

.toast-success {
    border-left-color: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-info {
    border-left-color: var(--navy);
}

.toast-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.toast-message {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
    flex: 1;
}

.toast-close {
    cursor: pointer;
    color: var(--grey-400);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    background: var(--grey-100);
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    justify-content: center;
}

.toast-close:hover {
    background: var(--grey-200);
    color: var(--text-dark);
    transform: rotate(90deg);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(60px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

@media (max-width: 768px) {
    .toast-container {
        bottom: 20px !important;
        right: 20px !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: auto;
    }

    .custom-toast {
        min-width: calc(100% - 30px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
}
/* Capture mode for memorial download */
.new-memorial-hero.poster-mode .new-action-buttons,
.new-memorial-hero.poster-mode .new-download-btn {
    display: none !important;
}

/* Live Search Dropdown - Clean Update */
.live-search-wrap {
    position: relative;
    width: 100%;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff !important;
    border-radius: 12px;
    margin-top: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    z-index: 9999 !important;
    max-height: 450px;
    overflow-y: auto;
    display: none;
    border: 1px solid rgba(0,0,0,0.1);
}

.search-results-dropdown.show {
    display: block !important;
}

.live-search-item {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #111827 !important;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    cursor: pointer !important;
    text-align: left;
    background: #fff;
}

.live-search-item:last-child {
    border-bottom: none;
}

.live-search-item:hover {
    background: #f0f7ff !important;
    padding-left: 25px;
}

.live-search-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #111827 !important;
    margin-bottom: 4px;
}

.live-search-meta {
    font-size: 0.85rem;
    color: #6b7280 !important;
}

.live-search-empty {
    padding: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
    background: #fff;
    border-radius: 12px;
}

/* ============================================
   ROBUST MOBILE FIXES
   ============================================ */
@media (max-width: 768px) {
    .detail-wrapper {
        padding-bottom: 95px !important;
    }
    .new-action-buttons {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .new-action-btn {
        min-width: 0 !important;
        width: 100% !important;
        white-space: normal !important;
        padding: 10px 4px !important;
        font-size: 0.72rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .chat-button {
        bottom: 12px !important;
        right: 12px !important;
    }
}

@media (max-width: 480px) {
    .new-hero-body {
        gap: 6px !important;
    }
    .new-date-col {
        min-width: 55px !important;
    }
    .new-frame-wrap {
        width: 130px !important;
        height: 130px !important;
    }
    .new-golden-frame {
        width: 154px !important;
        height: 144px !important;
        margin-top: 15px !important;
    }
    .new-hero-photo {
        width: 90px !important;
        height: 100px !important;
        margin-top: 15px !important;
    }

    .new-memorial-hero {
        padding: 24px 10px 22px !important;
    }
}

.required-asterisk {
    color: #dc3545 !important; /* Bootstrap danger red */
    margin-left: 2px;
    font-weight: bold;
}

.input-error {
    border-color: #ff4d4d !important;
    box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.2) !important;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}