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

body {
    font-family: 'Crimson Text', 'Georgia', serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
    animation: backgroundBreath 8s ease-in-out infinite;
    line-height: 1.7;
    font-weight: 400;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center,
        rgba(255, 255, 255, 0.02) 0%,
        rgba(255, 255, 255, 0.01) 50%,
        transparent 100%);
    animation: gentleBreath 6s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
        rgba(255, 255, 255, 0.01) 0%,
        transparent 25%,
        rgba(255, 255, 255, 0.005) 50%,
        transparent 75%,
        rgba(255, 255, 255, 0.01) 100%);
    animation: softShimmer 12s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* Animated Stars Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #ffffff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ffffff, transparent),
        radial-gradient(1px 1px at 200px 90px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 240px 50px, #ffffff, transparent),
        radial-gradient(1px 1px at 280px 10px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 320px 70px, #ffffff, transparent),
        radial-gradient(2px 2px at 360px 40px, rgba(255,255,255,0.9), transparent);
    background-repeat: repeat;
    background-size: 400px 200px;
    animation: twinkle 8s ease-in-out infinite alternate, moveStars 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

/* Additional star layers for depth */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 50px 100px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 150px 20px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 250px 120px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 350px 60px, rgba(255,255,255,0.3), transparent);
    background-repeat: repeat;
    background-size: 500px 300px;
    animation: twinkle 6s ease-in-out infinite alternate-reverse, moveStars 25s linear infinite reverse;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Floating Particles */
.aurora-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.aurora {
    position: absolute;
    width: 200%;
    height: 100%;
    opacity: 0.1;
    filter: blur(2px);
    animation: auroraFlow 30s infinite ease-in-out;
}

.aurora-1 {
    background: linear-gradient(45deg,
        transparent 0%,
        rgba(138, 43, 226, 0.3) 25%,
        rgba(75, 0, 130, 0.2) 50%,
        rgba(0, 191, 255, 0.3) 75%,
        transparent 100%);
    animation-delay: 0s;
    animation-duration: 25s;
}

.aurora-2 {
    background: linear-gradient(-45deg,
        transparent 0%,
        rgba(255, 20, 147, 0.2) 25%,
        rgba(0, 255, 255, 0.3) 50%,
        rgba(255, 105, 180, 0.2) 75%,
        transparent 100%);
    animation-delay: 8s;
    animation-duration: 35s;
}

.aurora-3 {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(147, 0, 211, 0.2) 25%,
        rgba(72, 61, 139, 0.3) 50%,
        rgba(123, 104, 238, 0.2) 75%,
        transparent 100%);
    animation-delay: 15s;
    animation-duration: 40s;
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 100%);
    border-radius: 50%;
    animation: floatParticle 15s infinite linear;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 14s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; animation-duration: 16s; }
.particle:nth-child(5) { left: 60%; animation-delay: 1s; animation-duration: 13s; }
.particle:nth-child(6) { left: 70%; animation-delay: 3s; animation-duration: 17s; }
.particle:nth-child(7) { left: 80%; animation-delay: 5s; animation-duration: 15s; }
.particle:nth-child(8) { left: 90%; animation-delay: 7s; animation-duration: 19s; }

.spiritual-symbols {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.symbol {
    position: absolute;
    font-size: 24px;
    opacity: 0.3;
    animation: floatSymbol 20s infinite ease-in-out;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.symbol-1 { left: 5%; top: 20%; animation-delay: 0s; animation-duration: 25s; }
.symbol-2 { left: 15%; top: 60%; animation-delay: 3s; animation-duration: 22s; }
.symbol-3 { left: 25%; top: 30%; animation-delay: 6s; animation-duration: 28s; }
.symbol-4 { left: 35%; top: 70%; animation-delay: 9s; animation-duration: 24s; }
.symbol-5 { left: 45%; top: 15%; animation-delay: 12s; animation-duration: 26s; }
.symbol-6 { left: 55%; top: 50%; animation-delay: 15s; animation-duration: 23s; }
.symbol-7 { left: 65%; top: 25%; animation-delay: 18s; animation-duration: 27s; }
.symbol-8 { left: 75%; top: 65%; animation-delay: 21s; animation-duration: 21s; }
.symbol-9 { left: 85%; top: 35%; animation-delay: 2s; animation-duration: 29s; }
.symbol-10 { left: 95%; top: 55%; animation-delay: 5s; animation-duration: 20s; }
.symbol-11 { left: 8%; top: 80%; animation-delay: 8s; animation-duration: 30s; }
.symbol-12 { left: 92%; top: 10%; animation-delay: 11s; animation-duration: 25s; }

@keyframes floatParticle {
    0% {
        top: 100%;
        opacity: 0;
        transform: translateX(0) rotate(0deg);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: -10%;
        opacity: 0;
        transform: translateX(50px) rotate(360deg);
    }
}

@keyframes auroraFlow {
    0% {
        transform: translateX(-50%) translateY(0%) rotate(0deg);
        opacity: 0.05;
    }
    25% {
        transform: translateX(-25%) translateY(-10%) rotate(5deg);
        opacity: 0.15;
    }
    50% {
        transform: translateX(0%) translateY(-5%) rotate(-3deg);
        opacity: 0.2;
    }
    75% {
        transform: translateX(25%) translateY(-15%) rotate(8deg);
        opacity: 0.1;
    }
    100% {
        transform: translateX(50%) translateY(0%) rotate(0deg);
        opacity: 0.05;
    }
}

@keyframes floatSymbol {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.2;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.4;
    }
    100% {
        transform: translateY(0px) rotate(360deg);
        opacity: 0.2;
    }
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    animation: fadeInDown 1s ease-out;
}

.title {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.subtitle {
    font-family: 'Crimson Text', 'Georgia', serif;
    font-size: 1.3rem;
    font-weight: 400;
    font-style: italic;
    color: #e2e8f0;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    letter-spacing: 0.01em;
    line-height: 1.4;
}

/* Main Content */
.main-content {
    width: 100%;
    max-width: 600px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Divine Light Effect */
.divine-light {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 400px;
    background: radial-gradient(ellipse at center, 
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.6) 20%,
        rgba(255, 255, 255, 0.4) 40%,
        rgba(255, 255, 255, 0.2) 60%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%);
    filter: blur(2px);
    animation: divineGlow 4s ease-in-out infinite alternate;
    z-index: 1;
    pointer-events: none;
}

.divine-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 600px;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 255, 255, 0.7) 20%,
        rgba(255, 255, 255, 0.5) 40%,
        rgba(255, 255, 255, 0.3) 60%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%);
    filter: blur(1px);
    animation: lightBeamPulse 3s ease-in-out infinite;
}

.divine-light::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 300px;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.8) 30%,
        rgba(255, 255, 255, 0.4) 70%,
        transparent 100%);
    filter: blur(0.5px);
    animation: coreLight 2s ease-in-out infinite alternate;
}

.light-beam {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 120px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 248, 220, 0.9) 20%,
        rgba(135, 206, 235, 0.8) 40%,
        rgba(255, 248, 220, 0.6) 70%,
        transparent 100%);
    border-radius: 3px;
    animation: lightBeam 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(135, 206, 235, 0.6);
}

.glow-aura {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.2) 30%,
        rgba(255, 255, 255, 0.1) 60%,
        transparent 100%);
    filter: blur(3px);
    animation: auraBreath 6s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.glow-aura::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%);
    border-radius: 50%;
    animation: innerGlow 4s ease-in-out infinite alternate;
}

.glow-aura::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 40%,
        transparent 100%);
    border-radius: 50%;
    animation: outerGlow 5s ease-in-out infinite reverse;
}

/* Envelope Container */
.envelope-container {
    position: relative;
    margin: 4rem 0 2rem 0;
    z-index: 2;
}

.envelope {
    position: relative;
    width: 200px;
    height: 140px;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.envelope:hover {
    transform: scale(1.05);
}

.envelope-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.envelope-front {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: 50% 0%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.envelope-flap.open {
    transform: rotateX(180deg);
}

.letter {
    position: absolute;
    top: 20px;
    left: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 40px);
    background: linear-gradient(135deg, #fffbf0 0%, #fef5e7 100%);
    border-radius: 4px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.letter.visible {
    opacity: 1;
    transform: translateY(-30px);
}

.letter-content {
    padding: 10px;
    font-size: 0.7rem;
    color: #4a5568;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Input Section */
.input-section {
    width: 100%;
    margin-bottom: 1rem;
}

.input-label {
    display: block;
    font-family: 'Inter', 'Arial', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.75rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.01em;
}

.prayer-input {
    width: 100%;
    padding: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    font-size: 1rem;
    font-family: 'Crimson Text', 'Georgia', serif;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #ffffff;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.05);
}

.prayer-input:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.3), 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 30px rgba(167, 139, 250, 0.2);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
}

.prayer-input::placeholder {
    color: #cbd5e0;
    font-style: italic;
    font-family: 'Crimson Text', 'Georgia', serif;
}

.character-count {
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #cbd5e0;
    font-family: 'Inter', 'Arial', sans-serif;
    font-weight: 300;
}

/* Send Button */
.send-button {
    position: relative;
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    overflow: hidden;
    min-width: 200px;
}

.send-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
}

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

.send-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.button-glow {
    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.6s ease;
}

.send-button:hover .button-glow {
    left: 100%;
}

.button-text {
    position: relative;
    z-index: 1;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.success-message.show {
    opacity: 1;
    visibility: visible;
}

.success-content {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    margin: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.success-message.show .success-content {
    transform: scale(1);
}

.success-content h3 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.success-content p {
    color: #718096;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.share-link-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.share-link {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #f7fafc;
    color: #4a5568;
}

.copy-button {
    background: #48bb78;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.copy-button:hover {
    background: #38a169;
}

.copy-button.copied {
    background: #68d391;
}

.new-prayer-button {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.new-prayer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* Footer */
.footer {
    margin-top: auto;
    padding-top: 3rem;
    text-align: center;
    color: #a0aec0;
    font-size: 0.9rem;
    font-weight: 300;
}

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

@keyframes divineGlow {
    0% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
        filter: blur(2px) brightness(1);
    }
    50% {
        opacity: 0.9;
        transform: translateX(-50%) scale(1.1);
        filter: blur(1px) brightness(1.3);
    }
    100% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.05);
        filter: blur(2px) brightness(1.1);
    }
}

@keyframes lightBeamPulse {
    0% {
        opacity: 0.7;
        transform: translateX(-50%) scaleY(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1.2);
    }
    100% {
        opacity: 0.8;
        transform: translateX(-50%) scaleY(1.1);
    }
}

@keyframes coreLight {
    0% {
        opacity: 0.9;
        transform: translateX(-50%) scale(1);
        filter: blur(0.5px) brightness(1.2);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
        filter: blur(0.3px) brightness(1.5);
    }
}

@keyframes auraBreath {
    0% {
        opacity: 0.3;
        transform: translateX(-50%) scale(1);
    }
    33% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1.1);
    }
    66% {
        opacity: 0.4;
        transform: translateX(-50%) scale(1.05);
    }
    100% {
        opacity: 0.3;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes innerGlow {
    0% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes backgroundBreath {
    0% {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    }
    50% {
        background: linear-gradient(135deg, #0f0f0f 0%, #1f1f33 50%, #1b2843 100%);
    }
    100% {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    }
}

@keyframes gentleBreath {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.02);
    }
    100% {
        opacity: 0.3;
        transform: scale(1);
    }
}

@keyframes lightBeam {
    0%, 100% {
        opacity: 0.8;
        transform: translateX(-50%) scaleY(1);
        filter: brightness(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1.2);
        filter: brightness(1.3);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.3);
    }
}

@keyframes envelopeFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

@keyframes moveStars {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-200px);
    }
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 60px rgba(255, 255, 255, 0.5), 0 0 80px rgba(135, 206, 235, 0.3);
    }
}

.envelope {
    animation: envelopeFloat 6s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .envelope {
        width: 160px;
        height: 112px;
    }
    
    .divine-light {
        width: 150px;
        height: 120px;
        top: -80px;
    }
    
    .success-content {
        padding: 2rem;
        margin: 0.5rem;
    }
    
    .share-link-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .envelope {
        width: 140px;
        height: 98px;
    }
    
    .send-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        min-width: 180px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.prayer-input:focus,
.send-button:focus,
.copy-button:focus,
.new-prayer-button:focus {
    outline: 2px solid #a78bfa;
    outline-offset: 2px;
}