body::after,
body::before {
    content: "";
    inset: 0;
    position: fixed
}

body,
h2 {
    padding: 20px
}

.wish,
.wish-time {
    transition: transform .2s, box-shadow .2s
}

.wish-stt,
h2 {
    text-align: center
}

.back-home,
body {
    position: relative
}

body {
    font-family: Poppins, sans-serif;
    margin: 0;
    min-height: 100vh;
    color: red
}

body::before {
    z-index: -2
}

body::after {
    background: url('../img/webp/QUYE2228.webp') center/cover no-repeat;
    z-index: -1
}

h2 {
    font-size: 34px;
    font-family: 'Great Vibes', cursive, 'Segoe UI', sans-serif;
    font-weight: 400;
    color: #3a5a40;
    margin: 30px auto;
    max-width: 700px;
    background: linear-gradient(135deg, #f0fdf4, #e6f4ea);
    border: 4px double #81c784;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(129, 199, 132, .2);
    text-shadow: 1px 1px 3px rgba(240, 255, 240, .8)
}

h2::after,
h2::before {
    content: "❦";
    font-size: 26px;
    color: #d6336c;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: .8
}

h2::before {
    left: 20px
}

h2::after {
    right: 20px
}

.wish-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 10px
}

.wish {
    background: rgba(255, 255, 255, .9);
    border-radius: 18px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(214, 51, 108, .15);
    border-left: 6px solid #3a5a40
}

.wish:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(214, 51, 108, .25)
}

.wish strong {
    font-size: 34px;
    color: #3a5a40;
    display: block;
    margin-bottom: 8px;
    font-family: 'Dancing Script', cursive
}

.wish p {
    margin: 0;
    font-size: 26px;
    color: #241616;
    line-height: 1.7;
    background: #acd4b4;
    padding: 10px 14px;
    border-radius: 10px
}

.wish-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 20px;
    background: #ffe6eb;
    padding: 5px 12px;
    border-radius: 12px;
    margin-top: 12px;
    box-shadow: 0 4px 10px rgba(214, 51, 108, .25), inset 0 0 6px rgba(255, 192, 203, .5)
}

.pagination a:hover,
.wish-stt {
    background: #d6336c;
    color: #fff
}

.wish-time:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(214, 51, 108, .35), inset 0 0 8px rgba(255, 182, 193, .6)
}

.wish-time i {
    color: #d6336c
}

.wish-time small {
    color: #3a5a40;
    font-style: italic
}

.wish-header {
    display: flex;
    align-items: center;
    gap: 10px
}

.wish-stt {
    display: inline-block;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50%;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2)
}

.back-home {
    --bg1: #ece5e8;
    --bg2: #ffd6e6;
    --txt: #3a5a40;
    --ring: #ffb6cc;
    --shadow: 0 10px 22px rgba(214, 51, 108, .18);
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin: 24px auto 10px;
    padding: 14px 22px;
    min-width: 240px;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg1), var(--bg2));
    color: var(--txt);
    font-family: Poppins, Quicksand, system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    border-radius: 999px;
    border: 2px solid #ffd3e0;
    box-shadow: var(--shadow), 0 0 0 8px #fff6fa;
    transition: transform .15s, box-shadow .2s, filter .2s
}

.error-message,
.pagination a {
    text-align: center;
    font-weight: 500
}

.back-home__icon {
    font-size: 1.15em;
    line-height: 0;
    transform: translateY(-.5px)
}

.back-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(214, 51, 108, .26), 0 0 0 10px #fff0f6;
    filter: saturate(1.05)
}

.back-home:active {
    transform: translateY(0)
}

.back-home:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px var(--ring), 0 0 0 10px #fff0f6
}

.back-home.floating {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 1100
}

@media (max-width:600px) {
    .back-home {
        font-size: 1.2rem;
        min-width: 50px;
        box-shadow: 0 8px 20px rgba(214, 51, 108, .22), 0 0 0 8px #fff6fa
    }

    .back-home__icon {
        font-size: 1.25em
    }

    h2 {
        font-size: 20px
    }

    .wish {
        padding: 16px
    }

    .wish strong {
        font-size: 25px
    }

    .wish p {
        font-size: 24px
    }

    .wish-time {
        font-size: 26px;
        padding: 4px 10px
    }

    .wish-time small {
        font-size: 15px
    }
}

.pagination {
    text-align: center;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap
}

.pagination a {
    display: inline-block;
    min-width: 38px;
    height: 38px;
    line-height: 38px;
    border-radius: 50%;
    background: #ffe6eb;
    color: #3a5a40;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(214, 51, 108, .15);
    transition: .25s
}

.pagination a:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 10px rgba(214, 51, 108, .3)
}

.pagination a.active {
    background: #769c7d;
    color: #fff;
    font-weight: 700;
    cursor: default;
    box-shadow: 0 4px 12px rgba(164, 19, 60, .35) inset
}

.error-message {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #842029;
    font-size: 18px;
    margin: 20px auto;
    padding: 14px 20px;
    border-radius: 12px;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    max-width: 600px;
    box-shadow: 0 4px 10px rgba(176, 42, 55, .2);
    animation: .6s fadeIn
}

.error-message i {
    font-size: 22px;
    color: #d6336c
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.attend-box {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-family: "Segoe UI", sans-serif;
    font-size: 16px;
    gap: 8px;
}

.attend-box .fa-users {
    color: #ff6b6b;
    font-size: 20px;
}

.attend-box .label {
    color: #555;
    font-weight: 500;
}

.attend-box .count {
    color: #ff6b6b;
    font-weight: 700;
    font-size: 18px;
}