.birthday-card-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 100%;
}


/* SINGLE PERSON CARD */

.birthday-elegant-card {
    /* background: rgba(255, 255, 255, 0.95); */
    background: linear-gradient(135deg, #667eea 0%, #e0dae7 50%, #c49fc92e 100%);
    /* border-radius: 30px; */
    /* box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3); */
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* MULTIPLE PEOPLE CARD */

.birthday-multiple-card {
    /* background: rgba(255, 255, 255, 0.95); */
    background: linear-gradient(135deg, #667eea 0%, #e0dae7 50%, #c49fc92e 100%);
    /* border-radius: 30px; */
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    padding: 20px 18px;
    position: relative;
    /* overflow-x: auto; */
    /* overflow-y: hidden; */
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    /* max-height: 500px; */
    display: flex;
    flex-direction: column;
}

.birthday-decorative-corner {
    position: absolute;
    width: 150px;
    height: 150px;
    opacity: 0.1;
}

.birthday-decorative-corner.top-left {
    top: -30px;
    left: -30px;
    border-top: 5px solid gold;
    border-left: 5px solid gold;
    border-radius: 30px 0 0 0;
}

.birthday-decorative-corner.bottom-right {
    bottom: -30px;
    right: -30px;
    border-bottom: 5px solid gold;
    border-right: 5px solid gold;
    border-radius: 0 0 30px 0;
}

.birthday-main-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #764ba2;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%); */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    /* background-clip: text; */
    margin-bottom: 8px;
    text-align: center;
    animation: titleGlow 3s ease-in-out infinite;
}

.birthday-date-header {
    font-size: 18px;
    color: #764ba2;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-align: center;
}

.birthday-list-gift {
    margin-top: 40px;
}
.birthday-list-gift span{
    font-size: 40px;
}


/* Person Grid Layout */

.birthday-people-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px 0;
    flex: 1;
    align-items: center;
}

.birthday-people-grid::-webkit-scrollbar {
    height: 6px;
}

.birthday-people-grid::-webkit-scrollbar-track {
    background: rgba(118, 75, 162, 0.1);
    border-radius: 10px;
}

.birthday-people-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #f093fb);
    border-radius: 10px;
}

.birthday-person-item {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(240, 147, 251, 0.1) 100%);
    border-radius: 20px;
    padding: 20px 18px;
    min-width: 200px;
    max-width: 220px;
    text-align: center;
    position: relative;
    border: 2px solid rgba(118, 75, 162, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.birthday-person-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(118, 75, 162, 0.3);
}

.birthday-person-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
    animation: floatAvatar 3s ease-in-out infinite;
}

@keyframes floatAvatar {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.birthday-person-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #f093fb;
    box-shadow: 0 8px 25px rgba(118, 75, 162, 0.3);
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 35px;
    font-weight: bold;
}

.birthday-person-crown {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    animation: crownShine 2s ease-in-out infinite;
}

@keyframes crownShine {
    0%,
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1.1);
    }
}

.birthday-person-age {
    position: absolute;
    bottom: -3px;
    right: 3px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    border: 3px solid white;
    box-shadow: 0 6px 18px rgba(245, 87, 108, 0.4);
    animation: pulseAge 1.5s ease-in-out infinite;
}

@keyframes pulseAge {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.birthday-person-name {
    font-size: 18px;
    font-weight: 600;
    color: #764ba2;
    margin: 8px 0 4px;
}

.birthday-person-date {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.birthday-person-wish {
    font-size: 12px;
    color: #8751e1eb;
    font-style: italic;
    margin-top: 8px;
    line-height: 1.4;
    font-weight: 600;
}


/* SINGLE PERSON STYLES */

.birthday-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    animation: floatAvatar 3s ease-in-out infinite;
}

.birthday-avatar-image {
    width: 180px;
    height: 160px;
    border-radius: 50%;
    border: 8px solid #f093fb;
    box-shadow: 0 15px 40px rgba(118, 75, 162, 0.4);
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 60px;
    font-weight: bold;
}

.birthday-crown-icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 50px;
    animation: crownShine 2s ease-in-out infinite;
}

.birthday-age-badge {
    position: absolute;
    bottom: -10px;
    right: 10px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    border: 5px solid white;
    box-shadow: 0 10px 25px rgba(245, 87, 108, 0.4);
    animation: pulseAge 1.5s ease-in-out infinite;
}

.birthday-title-text {
    font-family: 'Playfair Display', serif;
    font-size: 46px;
    font-weight: 700;
    -webkit-background-clip: text;
    background-clip: text;
    margin: 30px 0 20px;
    animation: titleGlow 3s ease-in-out infinite;
    position: absolute;
    top: -15px;
    color: #764ba2;
}

.birthday-person-name-single {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1.3px;
    color: #ffe39f;
    text-shadow: 0 3px 10px #8655d171, 0 1px 0 #fff7, 0 0px 16px #fff7;
    margin: 18px 0 5px;
    position: relative;
}

.birthday-person-name-single::after {
    content: '';
    display: block;
    width: 40%;
    height: 5px;
    background: linear-gradient(90deg, #ffe39f 70%, #f7b4ff 100%);
    border-radius: 20px;
    margin: 7px auto 0 auto;
    opacity: 0.58;
}

.birthday-date-display {
    font-size: 20px;
    color: #fff;
    font-weight: 600;
    margin: 10px 0 22px;
    letter-spacing: 2px;
    border-radius: 9px;
    padding: 5px 18px 6px 18px;
    display: inline-block;
    box-shadow: 0 1px 12px #ab85d340, 0 2px 18px #fff1;
}

.birthday-wish-message {
    font-size: 18px;
    line-height: 1.8;
    color: #846587;
    font-style: italic;
    max-width: 480px;
    margin: 12px auto 40px;
    padding: 20px;
    position: relative;
    font-weight: 600;
}

.birthday-wish-message::before,
.birthday-wish-message::after {
    content: '"';
    font-size: 60px;
    color: #c418d7;
    opacity: 0.3;
    position: absolute;
    font-family: 'Playfair Display', serif;
}

.birthday-wish-message::before {
    top: -10px;
    left: -10px;
}

.birthday-wish-message::after {
    bottom: -40px;
    right: -10px;
}

.birthday-collective-wish {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    max-width: 100%;
    margin: 0 auto;
    padding: 15px 20px;
    background: rgba(240, 147, 251, 0.05);
    border-radius: 15px;
    border: 2px dashed rgba(118, 75, 162, 0.2);
    text-align: center;
    font-weight: 600;
}


/* Candles */

.birthday-candles-container {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.birthday-candle {
    width: 6px;
    height: 45px;
    background: linear-gradient(to bottom, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 3px;
    position: relative;
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.4);
}

.birthday-candle-flame {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 15px;
    background: radial-gradient(ellipse at center, #ffff00 0%, #ff9500 50%, transparent 70%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 0.3s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) scale(1.1) translateY(-2px);
        opacity: 0.9;
    }
}


/* Floating Cake */

.birthday-cake-float {
    position: absolute;
    bottom: 100px;
    left: -100px;
    font-size: 80px;
    animation: cakeFloat 15s linear infinite;
    opacity: 0.3;
    z-index: 999;
}

@keyframes cakeFloat {
    0% {
        left: -100px;
        transform: rotate(0deg);
    }
    100% {
        left: calc(100% + 100px);
        transform: rotate(360deg);
    }
}

@keyframes titleGlow {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateY(-10px);
    }
}


/* Fireworks */

.birthday-firework {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    box-shadow: 0 0 8px 2.5px #fff2;
    opacity: 0.62;
    animation: explode 2s ease-out forwards;
    pointer-events: none;
    z-index: 10000;
    transition: opacity 0.16s;
}

.birthday-firework.neon-yellow {
    background: #fff70088;
    box-shadow: 0 0 10px 3px #fff70033, 0 0 20px 5px #ffe57526;
}

.birthday-firework.neon-pink {
    background: #f93b8785;
    box-shadow: 0 0 13px 3.5px #ff6dcd40, 0 0 18px 7px #ee34d133;
}

.birthday-firework.neon-blue {
    background: #01f2fe74;
    box-shadow: 0 0 10px 4.3px #4facfe3a, 0 0 20px 6.8px #468ef744;
}

.birthday-firework.neon-green {
    background: #43f9976b;
    box-shadow: 0 0 9px 2.5px #00ffa12f, 0 0 15px 4px #91fbc93f;
}

.birthday-firework.neon-purple {
    background: #b388ff7a;
    box-shadow: 0 0 9px 2.8px #d48bfe2a, 0 0 13px 4.4px #bd6aff17;
}

.birthday-firework.neon-orange {
    background: #ffaa334c;
    box-shadow: 0 0 9px 2.8px #ffb34731, 0 0 17px 4.8px #ffef5022;
}

.birthday-firework.neon-red {
    background: #ff334470;
    box-shadow: 0 0 11px 3.5px #ff334436, 0 0 18px 5.2px #f93b8727;
}


/* Confetti */

.birthday-confetti {
    position: fixed;
    top: -30px;
    width: 12px;
    height: 18px;
    border-radius: 4px;
    opacity: 0.85;
    z-index: 12000;
    pointer-events: none;
    animation: confettiFall 2.2s linear forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg) scale(1);
    }
    9% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
        transform: translateY(96vh) rotate(350deg) scale(0.83);
    }
}


/* Sparkles */

.birthday-sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: sparkle 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    z-index: 999;
}

@keyframes sparkle {
    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}


/* Balloons */

.birthday-balloon {
    position: absolute;
    width: 50px;
    height: 65px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: balloonFloat 6s ease-in-out infinite;
    z-index: 999;
}

@keyframes balloonFloat {
    0%,
    100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-30px) translateX(15px);
    }
}

.birthday-cake-anim {
    position: absolute;
    font-size: 38px;
    opacity: 0;
    transform: scale(0.7);
    pointer-events: none;
    z-index: 1500;
    transition: opacity 0.2s;
}

.cake-top-left {
    top: 0;
    left: 0;
}

.cake-top-right {
    top: 0;
    right: 0;
}

.cake-bottom-left {
    bottom: 0;
    left: 0;
}

.cake-bottom-right {
    bottom: 0;
    right: 0;
}

@keyframes cakePopOutIn {
    0% {
        opacity: 0;
        transform: scale(0.7) translate(0, 0);
    }
    10% {
        opacity: 1;
        transform: scale(1.1) translate(var(--dx), var(--dy));
    }
    55% {
        opacity: 1;
        transform: scale(1.07) translate(calc(var(--dx)*0.95), calc(var(--dy)*0.95));
    }
    70% {
        opacity: 1;
        transform: scale(1) translate(var(--dx), var(--dy));
    }
    90% {
        opacity: 0;
        transform: scale(0.8) translate(0, 0);
    }
    100% {
        opacity: 0;
        transform: scale(0.7) translate(0, 0);
    }
}

.rainbow-gradient-anim {
    animation: rainbowTextMove 3.8s linear infinite, rainbowTextBounce 1.6s infinite;
    display: inline-block;
}

@keyframes rainbowTextMove {
    0% {
        background-position: 0% 50%
    }
    50% {
        background-position: 100% 50%
    }
    100% {
        background-position: 0% 50%
    }
}

@keyframes rainbowTextBounce {
    0%,
    100% {
        transform: translateY(0) scale(1.00);
    }
    15% {
        transform: translateY(-5px) scale(1.07);
    }
    30% {
        transform: translateY(-9px) scale(1.11);
    }
    45% {
        transform: translateY(-7px) scale(1.07);
    }
    60% {
        transform: translateY(-3px) scale(1.03);
    }
    80% {
        transform: translateY(0) scale(1.01);
    }
}

.birthday-bounce-static {
    animation: rainbowTextBounce 1.6s infinite;
    color: #fff !important;
    text-shadow: 0 2px 6px #9566e58c, 0 0 18px #fff6;
}

.birthday-float-balloon {
    position: absolute;
    z-index: 900;
    font-size: 28px;
    pointer-events: none;
    animation: floatBalloonUp 1.25s cubic-bezier(.42, 1.5, .4, .97) forwards;
    opacity: 0.86;
    will-change: transform, opacity;
    filter: drop-shadow(0px 4px 10px #bbb3ab44);
}

@keyframes floatBalloonUp {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    75% {
        opacity: 0.92;
    }
    to {
        transform: translateY(-85px) scale(1.15);
        opacity: 0;
    }
}

@media (max-width: 768px) {

    .birthday-multiple-card {
        padding: 30px 15px;
        max-height: fit-content!important;
    }
    .birthday-elegant-card {
        padding: 30px 15px;
        flex-direction: column;
        max-height: fit-content!important;
    }
     .birthday-title-text {
         top: 48%;
     }
    .birthday-title-text,
    .birthday-main-title {
        font-size: 28px;
    }
    
    .birthday-avatar-wrapper {
        margin: 0;
    }
    .birthday-avatar-image {
        width: 140px;
        height: 140px;
        border: 2px solid #f093fb;
    }
    
    .birthday-crown-icon {
        top: -18px;
        font-size: 40px;
    }
    
    .birthday-list-gift {
        margin-top: 0;
    }
    .birthday-list-gift span{
        font-size: 30px;
    }
    
    .birthday-age-badge{
        border: 2px solid white;
        width: 40px;
        height: 40px;
        right: 10pxpx;
        font-size: 18px;
    }
    .birthday-wish-message,
    .birthday-collective-wish {
        font-size: 13px;
        padding: 12px 15px;
    }
    .birthday-person-item {
        min-width: 180px;
        max-width: 200px;
        padding: 15px 12px;
    }
    .birthday-person-avatar {
        width: 80px;
        height: 80px;
        font-size: 30px;
    }
    .birthday-person-name {
        font-size: 16px;
    }
    .birthday-person-wish {
        font-size: 11px;
    }
}