/* Only custom animations/styles not covered by Tailwind */
.loader {
    width: 18px;
    height: 18px;
    border: 2px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Custom transitions for success state */
#successCard {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile App Specific Styles */
.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.primary-gradient {
    background: linear-gradient(135deg, #412ec1 0%, #5a4bda 100%);
}

body {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1023px) {
    body {
        min-height: max(884px, 100dvh);
    }
}

/* --- Added Production Styles --- */

/* Standard Phone Validation */
.phone-progress-container {
    height: 3px;
    background: rgba(65, 46, 193, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
    transition: all 0.3s ease;
}

.phone-progress-bar {
    height: 100%;
    width: 0%;
    background: #412ec1;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-input-valid {
    border: 2px solid #10b981 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1) !important;
}

.phone-input-invalid {
    border: 2px solid #ef4444 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

/* Audio Guide Pill */
.audio-guide-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(65, 46, 193, 0.1);
    padding: 4px;
    border-radius: 30px;
    gap: 4px;
    box-shadow: 0 8px 32px rgba(65, 46, 193, 0.08);
}

.audio-guide-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.audio-guide-pill button {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    transition: all 0.2s ease;
    color: #412ec1;
    text-transform: uppercase;
}

.audio-guide-pill .lang-btn.active {
    background: #412ec1;
    color: white;
    box-shadow: 0 4px 12px rgba(65, 46, 193, 0.4);
}

.audio-play-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: white;
    color: #412ec1;
    border: 1px solid rgba(65, 46, 193, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.audio-play-btn.playing {
    background: #10b981;
    color: white;
    border: none;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}