* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wrapper {
    width: 100%;
    max-width: 450px;
    animation: fadeInUp 0.8s ease-out;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px 30px;
    box-shadow: 
        0 25px 45px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff9a9e, #fecfef, #fecfef, #ff9a9e);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 35px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

.icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #888;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

#affirmation {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

#affirmation-text {
    font-size: 1.4rem;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8f9ff, #e8f4f8);
    border-radius: 20px;
    border: 2px solid #e1e8ff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    max-width: 100%;
    word-wrap: break-word;
}

#affirmation-text.loading {
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 1.5s infinite;
}

button {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    color: #fff;
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 
        0 10px 30px rgba(255, 154, 158, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

button:hover::before {
    left: 100%;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 35px rgba(255, 154, 158, 0.5),
        0 5px 20px rgba(0, 0, 0, 0.1);
}

button:active {
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes shimmerText {
    0% { background-position: 200% 50%; }
    100% { background-position: -200% 50%; }
}

/* Responsive Design */
@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .icon {
        font-size: 3.5rem;
    }
    
    #affirmation-text {
        font-size: 1.2rem;
        padding: 15px 20px;
    }
}