body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #8a2be2, #4169e1, #ff69b4);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
}
.toy-theme {
    font-family: 'Balsamiq Sans', cursive;
    color: #ffeb3b;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}
.card {
    background-color: #ffffff;
    border-radius: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    padding: 30px;
    margin: 20px;
    max-width: 900px;
    width: 100%;
    border: 5px solid #87ceeb;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #ffeb3b, #ff9800);
    z-index: -1;
    border-radius: 30px;
    filter: blur(8px);
    opacity: 0.6;
}
.button-primary {
    background-color: #ff69b4;
    color: white;
    padding: 12px 25px;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 10px rgba(255, 105, 180, 0.4);
    border: 2px solid #e0509a;
}
.button-primary:hover {
    background-color: #e0509a;
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(255, 105, 180, 0.6);
}
.button-primary:disabled {
    background-color: #f8bbd0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
/* UPDATED Secondary Button Style */
.button-secondary {
    background-color: #4682b4;
    color: white;
    padding: 10px 20px;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(70, 130, 180, 0.4);
    border: 2px solid #4169e1;
}
.button-secondary:hover {
    background-color: #4169e1;
    box-shadow: 0 5px 10px rgba(70, 130, 180, 0.6);
}
.input-field {
    border-radius: 10px;
    border: 2px solid #a7d9f7;
    padding: 10px 15px;
    background-color: #f7fcff;
    transition: border-color 0.3s ease;
}
.input-field:focus {
    outline: none;
    border-color: #87ceeb;
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.3);
}
.timer-display {
    font-family: 'Balsamiq Sans', cursive;
    font-size: 2rem;
    color: #4CAF50;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    background-color: #e8f5e9;
    padding: 15px 25px;
    border-radius: 15px;
    border: 3px solid #66bb6a;
    display: inline-block;
    margin-top: 20px;
}
.progress-container {
    background-color: #e8f5e9;
    border-radius: 10px;
    overflow: hidden;
    height: 30px;
    border: 3px solid #66bb6a;
    position: relative;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8a2be2, #4169e1, #ff69b4);
    border-radius: 8px;
    transition: width 0.5s ease-in-out;
}
.progress-text {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 30px;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    z-index: 999;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}
.auth-gradient-card {
    background: linear-gradient(135deg, #8a2be2, #4169e1, #ff69b4);
    border-radius: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    padding: 30px;
    margin: 20px;
    max-width: 900px;
    width: 100%;
    border: 5px solid #ffeb3b;
    position: relative;
    overflow: hidden;
    color: white;
}
.auth-gradient-card .toy-theme {
    color: #ffeb3b;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
}
.auth-gradient-card p {
    color: #e0e0e0;
}
.auth-gradient-card::before {
    content: none;
}
.toolbar {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 15px 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-wrap: wrap;
}
@media (min-width: 768px) {
    .toolbar {
        flex-direction: row;
    }
}
.toolbar a, .toolbar span {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}
.toolbar a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}
.toolbar .logo {
    font-family: 'Balsamiq Sans', cursive;
    font-size: 1.8rem;
    color: #ffeb3b;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.3);
}
.nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 5px;
}
@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        flex-direction: row;
        width: auto;
        justify-content: flex-end;
        align-items: center;
        gap: 1rem;
    }
}
.nav-menu.active {
    display: flex;
}
@media (max-width: 768px) {
    .timer-display {
        font-size: 1.8rem;
    }
    .card {
        padding: 20px;
    }
    .button-primary {
        padding: 10px 20px;
    }
    .progress-container {
        width: 95%;
    }
    .toolbar {
        padding: 15px;
        gap: 10px;
        align-items: flex-start;
    }
    .toolbar > .flex {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
    .toolbar .logo {
        margin-bottom: 0;
        width: auto;
        text-align: left;
    }
    .toolbar .nav-menu a, .toolbar .nav-menu span {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
    .hamburger-menu {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        align-self: center;
        order: 1;
    }
}
.free-raffle-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #22c55e;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
    transform: rotate(-5deg);
    transform-origin: top left;
}
.card h2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 5rem;
    line-height: 2.5rem;
}
.hot-raffle-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #ff7f00;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
    transform: rotate(-10deg);
}

/* ✅ NEW: Improved Overlay Styling */
.description-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(138, 43, 226, 0.9), rgba(255, 105, 180, 0.9));
    backdrop-filter: blur(8px);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    overflow-y: auto;
    text-align: center;
    font-weight: 600;
    border-radius: 1rem;
}
.group:hover .description-overlay {
    opacity: 1;
}
